#31408E#31408E
#31408E is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.5% C 0.130 H 271.3°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).
Color values
| HEX | #31408E |
|---|---|
| RGB | rgb(49, 64, 142) |
| HSL | hsl(230, 49%, 37%) |
| HSV | hsv(230, 65%, 56%) |
| CMYK | cmyk(65.5%, 54.9%, 0%, 44.3%) |
| CIE-LAB | lab(30.09, 20.29, -45.21) |
| CIE-LCH | lch(30.09, 49.56, 294.17°) |
| OKLab | oklab(40.5% 0.0028 -0.1298) |
| OKLCH | oklch(40.5% 0.13 271.3) |
| XYZ | xyz(7.9809, 6.2721, 26.3760) |
| Luminance | 0.0627 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.00
Cobalt (survey)
#1E488F
ΔE00 4.81
Darkslateblue
#483D8B
ΔE00 5.04
Sapphire (survey)
#2138AB
ΔE00 5.34
Cobalt
#0047AB
ΔE00 5.81
Darkish Blue
#014182
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31408E #8E7F31
analogous
#316E8E #31408E #51318E
triadic
#31408E #8E3140 #408E31
tetradic
#31408E #8E316E #8E7F31 #318E51
square
#31408E #8E316E #8E7F31 #318E51
split-complementary
#31408E #8E5131 #6E8E31
monochromatic
#121733 #212B61 #31408E #4155BB #6D7CCD
Accessibility & contrast
On white
9.31
#31408E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#31408E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31408E
9.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31408E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31408E | 1.00 | 9.31 | 2.25 | 9.31 |
| #FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0B4B91
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #31408e; /* rgb */ color: rgb(49, 64, 142); /* oklch */ color: oklch(40.5% 0.130 271.3);
Tailwind
colors: {
custom: {
50: '#7474b0',
500: '#31408e',
950: '#000000',
},
}SCSS
$custom: #31408e; $custom-light: #7474b0; $custom-dark: #000000;
JSON
{
"hex": "#31408e",
"rgb": {
"r": 49,
"g": 64,
"b": 142
},
"hsl": {
"h": 230.323,
"s": 48.691,
"l": 37.451
},
"oklch": {
"l": 0.40504,
"c": 0.12983,
"h": 271.3
},
"luminance": 0.06273
}Semantic roles & 50–950 ramp
primary
#31408E
secondary
#B4A867
accent
#C250D8
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F