#331D7C

A dark, moderate blue closely aligning with Midnightblue.

About #331D7C

Visually, #331D7C is defined as a moderate blue. If you're using CSS, you might find it aligns closely with Midnightblue. This translates to an RGB value of rgb(51, 29, 124).

Translating this color to physical media requires the CMYK color model. The color uses 59% Cyan, 77% Magenta, 0% Yellow, and 51% Black. With a hue angle of 253.9 degrees, it sits comfortably in the blue spectrum.

Ensuring your text is legible against this background is a key part of web design. To prevent eye strain, #FFFFFF text pairs best with this hex code. You can view the detailed AAA and AA pass/fail metrics in the table below.

Color Space Conversions

HEX#331D7C
RGB51, 29, 124
HSL253.9°, 62.1%, 30.0%
CMYK59%, 77%, 0%, 51%
HSV253.9°, 76.6%, 48.6%
LAB20.2, 36.7, -50.1
XYZ5.4, 3.0, 19.4
Decimal3349884

Color Harmonies

Complementary

Analogous

Triadic

Tints, Shades & Tones

Tints (Adding White)

Shades (Adding Black)

WCAG Contrast Accessibility

13.06:1
Text on #FFFFFF
AAA
1.61:1
Text on #000000
FAIL
12.49:1
Text on #F8FAFC
AAA
1.37:1
Text on #0F172A
FAIL

CSS Implementation

.bg-color { background-color: #331D7C; }
.text-color { color: #331D7C; }
.border-color { border: 2px solid #331D7C; }

Similar Colors

Midnightblue
#191970