Recognised as Colour
#31166F
- #31166F
- Violet
- Dark
- Nearest: Midnight blue
#31166F is a violet with RGB values 49, 22, 111 and HSL 258°, 67%, 26%. It is a dark colour, so white text on it reaches 14.2:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#31166F#31166F
HEX#31166F
RGBrgb(49, 22, 111)
RGB (0–1)0.1922, 0.0863, 0.4353
RGB percentages19.2%, 8.6%, 43.5%
HSLhsl(258.2, 66.9%, 26.1%)
HSV / HSBhsv(258.2, 80.2%, 43.5%)
CMYK55.9%, 80.2%, 0%, 56.5%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer3,217,007
CSS custom property--colour: #31166F;
Brightness & contrast
Relative luminance0.02374WCAG 2.x, 0 is black and 1 is white
Perceived brightness49.1 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 14.24:1
Contrast with white14.24:1WCAG normal text: AAA
Contrast with black1.47:1WCAG normal text: Fail
Greyscale equivalent#222222
Inverted#CEE990
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text14.24:1WCAG large text: AAA
Contrast with black, large text1.47:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#546F16
Analogous#16276F, #5E166F
Triadic#6F3116, #166F31
Split complementary#6F5E16, #276F16
Tetradic#6F1627, #546F16, #166F5E
Tints, shades & saturation
Channel breakdown
R49
G22
B111
Red49 (19.2%)
Green22 (8.6%)
Blue111 (43.5%)
Hue258.2°
Saturation (HSL)66.92%
Lightness26.08%
Dominant channelBlue
Hex per channelR 31 · G 16 · B 6F
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