Recognised as Colour
#31125D
- #31125D
- Violet
- Dark
- Nearest: Midnight blue
#31125D is a violet with RGB values 49, 18, 93 and HSL 265°, 68%, 22%. It is a dark colour, so white text on it reaches 15.3:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#31125D#31125D
HEX#31125D
RGBrgb(49, 18, 93)
RGB (0–1)0.1922, 0.0706, 0.3647
RGB percentages19.2%, 7.1%, 36.5%
HSLhsl(264.8, 67.6%, 21.8%)
HSV / HSBhsv(264.8, 80.6%, 36.5%)
CMYK47.3%, 80.6%, 0%, 63.5%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer3,215,965
CSS custom property--colour: #31125D;
Brightness & contrast
Relative luminance0.01876WCAG 2.x, 0 is black and 1 is white
Perceived brightness43.5 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 15.27:1
Contrast with white15.27:1WCAG normal text: AAA
Contrast with black1.38:1WCAG normal text: Fail
Greyscale equivalent#1E1E1E
Inverted#CEEDA2
Colour vision & accessibility
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text15.27:1WCAG large text: AAA
Contrast with black, large text1.38:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#3E5D12
Analogous#12195D, #56125D
Triadic#5D3112, #125D31
Split complementary#5D5712, #185D12
Tetradic#5D1219, #3E5D12, #125D56
Tints, shades & saturation
Channel breakdown
R49
G18
B93
Red49 (19.2%)
Green18 (7.1%)
Blue93 (36.5%)
Hue264.8°
Saturation (HSL)67.57%
Lightness21.76%
Dominant channelBlue
Hex per channelR 31 · G 12 · B 5D
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