#31458E#31458E
#31458E is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.6% C 0.123 H 269.0°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).
Color values
| HEX | #31458E |
|---|---|
| RGB | rgb(49, 69, 142) |
| HSL | hsl(227, 49%, 37%) |
| HSV | hsv(227, 65%, 56%) |
| CMYK | cmyk(65.5%, 51.4%, 0%, 44.3%) |
| CIE-LAB | lab(31.49, 16.91, -42.95) |
| CIE-LCH | lch(31.49, 46.16, 291.49°) |
| OKLab | oklab(41.56% -0.0022 -0.1231) |
| OKLCH | oklch(41.56% 0.123 269) |
| XYZ | xyz(8.2756, 6.8615, 26.4742) |
| Luminance | 0.0686 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.40
Blueberry
#464196
ΔE00 4.98
Cobalt
#0047AB
ΔE00 5.08
Darkish Blue
#014182
ΔE00 5.44
Twilight Blue
#0A437A
ΔE00 6.20
Darkslateblue
#483D8B
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31458E #8E7A31
analogous
#31738E #31458E #4C318E
triadic
#31458E #8E3145 #458E31
tetradic
#31458E #8E3173 #8E7A31 #318E4C
square
#31458E #8E3173 #8E7A31 #318E4C
split-complementary
#31458E #8E4C31 #738E31
monochromatic
#121933 #212F61 #31458E #415BBB #6D81CD
Accessibility & contrast
On white
8.85
#31458E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.37
#31458E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31458E
8.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31458E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31458E | 1.00 | 8.85 | 2.37 | 8.85 |
| #FFFFFF | 8.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1C4E91
Deuteranopia (green-blind)
#03468C
Tritanopia (blue-blind)
#005663
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #31458e; /* rgb */ color: rgb(49, 69, 142); /* oklch */ color: oklch(41.6% 0.123 269.0);
Tailwind
colors: {
custom: {
50: '#7378b0',
500: '#31458e',
950: '#000000',
},
}SCSS
$custom: #31458e; $custom-light: #7378b0; $custom-dark: #000000;
JSON
{
"hex": "#31458e",
"rgb": {
"r": 49,
"g": 69,
"b": 142
},
"hsl": {
"h": 227.097,
"s": 48.691,
"l": 37.451
},
"oklch": {
"l": 0.41562,
"c": 0.1231,
"h": 269
},
"luminance": 0.06862
}Semantic roles & 50–950 ramp
primary
#31458E
secondary
#B4A367
accent
#BB50D8
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F