#31418E#31418E
#31418E is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.7% C 0.128 H 270.8°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).
Color values
| HEX | #31418E |
|---|---|
| RGB | rgb(49, 65, 142) |
| HSL | hsl(230, 49%, 37%) |
| HSV | hsv(230, 65%, 56%) |
| CMYK | cmyk(65.5%, 54.2%, 0%, 44.3%) |
| CIE-LAB | lab(30.37, 19.61, -44.76) |
| CIE-LCH | lch(30.37, 48.87, 293.66°) |
| OKLab | oklab(40.71% 0.0018 -0.1285) |
| OKLCH | oklch(40.71% 0.128 270.8) |
| XYZ | xyz(8.0378, 6.3859, 26.3950) |
| Luminance | 0.0639 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.15
Cobalt (survey)
#1E488F
ΔE00 4.51
Darkslateblue
#483D8B
ΔE00 5.25
Sapphire (survey)
#2138AB
ΔE00 5.53
Cobalt
#0047AB
ΔE00 5.63
Darkish Blue
#014182
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31418E #8E7E31
analogous
#31708E #31418E #4F318E
triadic
#31418E #8E3141 #418E31
tetradic
#31418E #8E3170 #8E7E31 #318E4F
square
#31418E #8E3170 #8E7E31 #318E4F
split-complementary
#31418E #8E4F31 #708E31
monochromatic
#121733 #212C61 #31418E #4156BB #6D7DCD
Accessibility & contrast
On white
9.22
#31418E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#31418E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31418E
9.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31418E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31418E | 1.00 | 9.22 | 2.28 | 9.22 |
| #FFFFFF | 9.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0F4C91
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #31418e; /* rgb */ color: rgb(49, 65, 142); /* oklch */ color: oklch(40.7% 0.128 270.8);
Tailwind
colors: {
custom: {
50: '#7475b0',
500: '#31418e',
950: '#000000',
},
}SCSS
$custom: #31418e; $custom-light: #7475b0; $custom-dark: #000000;
JSON
{
"hex": "#31418e",
"rgb": {
"r": 49,
"g": 65,
"b": 142
},
"hsl": {
"h": 229.677,
"s": 48.691,
"l": 37.451
},
"oklch": {
"l": 0.40712,
"c": 0.12848,
"h": 270.8
},
"luminance": 0.06387
}Semantic roles & 50–950 ramp
primary
#31418E
secondary
#B4A767
accent
#C150D8
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F