#31249E#31249E
#31249E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.2% C 0.185 H 277.2°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).
Color values
| HEX | #31249E |
|---|---|
| RGB | rgb(49, 36, 158) |
| HSL | hsl(246, 63%, 38%) |
| HSV | hsv(246, 77%, 62%) |
| CMYK | cmyk(69%, 77.2%, 0%, 38%) |
| CIE-LAB | lab(24.90, 43.45, -63.51) |
| CIE-LCH | lch(24.90, 76.95, 304.38°) |
| OKLab | oklab(37.16% 0.0232 -0.1835) |
| OKLCH | oklch(37.16% 0.185 277.2) |
| XYZ | xyz(8.0670, 4.3826, 32.7619) |
| Luminance | 0.0438 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.47
Royal
#0C1793
ΔE00 4.12
Cobalt Blue
#030AA7
ΔE00 4.87
Ultramarine
#2000B1
ΔE00 5.23
Royal Blue (survey)
#0504AA
ΔE00 5.30
Sapphire (survey)
#2138AB
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31249E #919E24
analogous
#24549E #31249E #6E249E
triadic
#31249E #9E3124 #249E31
tetradic
#31249E #9E2454 #919E24 #249E6E
square
#31249E #9E2454 #919E24 #249E6E
split-complementary
#31249E #9E6E24 #549E24
monochromatic
#120D3A #22196C #31249E #412FD0 #6E61DB
Accessibility & contrast
On white
11.19
#31249E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#31249E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31249E
11.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31249E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31249E | 1.00 | 11.19 | 1.88 | 11.19 |
| #FFFFFF | 11.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #31249e; /* rgb */ color: rgb(49, 36, 158); /* oklch */ color: oklch(37.2% 0.185 277.2);
Tailwind
colors: {
custom: {
50: '#7961bc',
500: '#31249e',
950: '#000000',
},
}SCSS
$custom: #31249e; $custom-light: #7961bc; $custom-dark: #000000;
JSON
{
"hex": "#31249e",
"rgb": {
"r": 49,
"g": 36,
"b": 158
},
"hsl": {
"h": 246.393,
"s": 62.887,
"l": 38.039
},
"oklch": {
"l": 0.37158,
"c": 0.18496,
"h": 277.2
},
"luminance": 0.04383
}Semantic roles & 50–950 ramp
primary
#31249E
secondary
#B6C05E
accent
#E642D4
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981