Recognised as Colour
#331F78
- #331F78
- Blue
- Dark
- Nearest: Midnight blue
#331F78 is a blue with RGB values 51, 31, 120 and HSL 253°, 59%, 30%. It is a dark colour, so white text on it reaches 13.1:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#331F78#331F78
HEX#331F78
RGBrgb(51, 31, 120)
RGB (0–1)0.2, 0.1216, 0.4706
RGB percentages20%, 12.2%, 47.1%
HSLhsl(253.5, 58.9%, 29.6%)
HSV / HSBhsv(253.5, 74.2%, 47.1%)
CMYK57.5%, 74.2%, 0%, 52.9%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer3,350,392
CSS custom property--colour: #331F78;
Brightness & contrast
Relative luminance0.0304WCAG 2.x, 0 is black and 1 is white
Perceived brightness54.6 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 13.06:1
Contrast with white13.06:1WCAG normal text: AAA
Contrast with black1.61:1WCAG normal text: Fail
Greyscale equivalent#2A2A2A
Inverted#CCE087
Colour vision & accessibility
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text13.06:1WCAG large text: AAA
Contrast with black, large text1.61:1WCAG large text: Fail
Named colours
Hue familyblue
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#64781F
Analogous#1F3878, #5F1F78
Triadic#78331F, #1F7833
Split complementary#785F1F, #38781F
Tetradic#781F38, #64781F, #1F785F
Tints, shades & saturation
Channel breakdown
R51
G31
B120
Red51 (20%)
Green31 (12.2%)
Blue120 (47.1%)
Hue253.48°
Saturation (HSL)58.94%
Lightness29.61%
Dominant channelBlue
Hex per channelR 33 · G 1F · B 78
Keep nerding
Every link below is a page Nerdulator can generate from what it already knows about this value.
Harmonies
Similar named colours
Nerdulate something else
Nothing in mind? Surprise me · today’s page