Recognised as Colour
#310C48
- #310C48
- Violet
- Dark
- Nearest: Midnight blue
#310C48 is a violet with RGB values 49, 12, 72 and HSL 277°, 71%, 16%. It is a dark colour, so white text on it reaches 16.4:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#310C48#310C48
HEX#310C48
RGBrgb(49, 12, 72)
RGB (0–1)0.1922, 0.0471, 0.2824
RGB percentages19.2%, 4.7%, 28.2%
HSLhsl(277, 71.4%, 16.5%)
HSV / HSBhsv(277, 83.3%, 28.2%)
CMYK31.9%, 83.3%, 0%, 71.8%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer3,214,408
CSS custom property--colour: #310C48;
Brightness & contrast
Relative luminance0.01384WCAG 2.x, 0 is black and 1 is white
Perceived brightness37.3 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 16.45:1
Contrast with white16.45:1WCAG normal text: AAA
Contrast with black1.28:1WCAG normal text: Fail
Greyscale equivalent#181818
Inverted#CEF3B7
Colour vision & accessibility
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text16.45:1WCAG large text: AAA
Contrast with black, large text1.28:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#23480C
Analogous#130C48, #480C41
Triadic#48310C, #0C4831
Split complementary#41480C, #0C4813
Tetradic#48130C, #23480C, #0C4148
Tints, shades & saturation
Channel breakdown
R49
G12
B72
Red49 (19.2%)
Green12 (4.7%)
Blue72 (28.2%)
Hue277°
Saturation (HSL)71.43%
Lightness16.47%
Dominant channelBlue
Hex per channelR 31 · G 0C · B 48
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