Recognised as Colour
#31248A
- #31248A
- Blue
- Dark
- Nearest: Midnight blue
#31248A is a blue with RGB values 49, 36, 138 and HSL 248°, 59%, 34%. It is a dark colour, so white text on it reaches 12:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#31248A#31248A
HEX#31248A
RGBrgb(49, 36, 138)
RGB (0–1)0.1922, 0.1412, 0.5412
RGB percentages19.2%, 14.1%, 54.1%
HSLhsl(247.6, 58.6%, 34.1%)
HSV / HSBhsv(247.6, 73.9%, 54.1%)
CMYK64.5%, 73.9%, 0%, 45.9%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer3,220,618
CSS custom property--colour: #31248A;
Brightness & contrast
Relative luminance0.0375WCAG 2.x, 0 is black and 1 is white
Perceived brightness60.4 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 12:1
Contrast with white12:1WCAG normal text: AAA
Contrast with black1.75:1WCAG normal text: Fail
Greyscale equivalent#2E2E2E
Inverted#CEDB75
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text12:1WCAG large text: AAA
Contrast with black, large text1.75:1WCAG large text: Fail
Named colours
Hue familyblue
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#7D8A24
Analogous#244A8A, #64248A
Triadic#8A3124, #248A31
Split complementary#8A6424, #4A8A24
Tetradic#8A244A, #7D8A24, #248A64
Tints, shades & saturation
Channel breakdown
R49
G36
B138
Red49 (19.2%)
Green36 (14.1%)
Blue138 (54.1%)
Hue247.65°
Saturation (HSL)58.62%
Lightness34.12%
Dominant channelBlue
Hex per channelR 31 · G 24 · B 8A
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