Recognised as Colour
#331F42
- #331F42
- Violet
- Dark
- Nearest: Dark slateblue
#331F42 is a violet with RGB values 51, 31, 66 and HSL 274°, 36%, 19%. It is a dark colour, so white text on it reaches 14.8:1 contrast (AAA for normal text). The nearest named colour is Dark slateblue.
Colour values
#331F42#331F42
HEX#331F42
RGBrgb(51, 31, 66)
RGB (0–1)0.2, 0.1216, 0.2588
RGB percentages20%, 12.2%, 25.9%
HSLhsl(274.3, 36.1%, 19%)
HSV / HSBhsv(274.3, 53%, 25.9%)
CMYK22.7%, 53%, 0%, 74.1%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer3,350,338
CSS custom property--colour: #331F42;
Brightness & contrast
Relative luminance0.02077WCAG 2.x, 0 is black and 1 is white
Perceived brightness42.9 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 14.84:1
Contrast with white14.84:1WCAG normal text: AAA
Contrast with black1.42:1WCAG normal text: Fail
Greyscale equivalent#262626
Inverted#CCE0BD
Colour vision & accessibility
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text14.84:1WCAG large text: AAA
Contrast with black, large text1.42:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#2E421F
Analogous#211F42, #421F40
Triadic#42331F, #1F4233
Split complementary#40421F, #1F4222
Tetradic#42221F, #2E421F, #1F4042
Tints, shades & saturation
Channel breakdown
R51
G31
B66
Red51 (20%)
Green31 (12.2%)
Blue66 (25.9%)
Hue274.29°
Saturation (HSL)36.08%
Lightness19.02%
Dominant channelBlue
Hex per channelR 33 · G 1F · B 42
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