#31478E#31478E
#31478E is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.0% C 0.120 H 268.0°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).
Color values
| HEX | #31478E |
|---|---|
| RGB | rgb(49, 71, 142) |
| HSL | hsl(226, 49%, 37%) |
| HSV | hsv(226, 65%, 56%) |
| CMYK | cmyk(65.5%, 50%, 0%, 44.3%) |
| CIE-LAB | lab(32.06, 15.57, -42.03) |
| CIE-LCH | lch(32.06, 44.82, 290.32°) |
| OKLab | oklab(42% -0.0043 -0.1203) |
| OKLCH | oklch(42% 0.12 268) |
| XYZ | xyz(8.4007, 7.1117, 26.5159) |
| Luminance | 0.0711 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.94
Cobalt
#0047AB
ΔE00 4.92
Darkish Blue
#014182
ΔE00 5.27
Blueberry
#464196
ΔE00 5.50
Dusk Blue
#26538D
ΔE00 5.67
Twilight Blue
#0A437A
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31478E #8E7831
analogous
#31768E #31478E #49318E
triadic
#31478E #8E3147 #478E31
tetradic
#31478E #8E3176 #8E7831 #318E49
square
#31478E #8E3176 #8E7831 #318E49
split-complementary
#31478E #8E4931 #768E31
monochromatic
#121A33 #213061 #31478E #415EBB #6D83CD
Accessibility & contrast
On white
8.67
#31478E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.42
#31478E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31478E
8.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31478E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31478E | 1.00 | 8.67 | 2.42 | 8.67 |
| #FFFFFF | 8.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#215091
Deuteranopia (green-blind)
#0C478D
Tritanopia (blue-blind)
#005763
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #31478e; /* rgb */ color: rgb(49, 71, 142); /* oklch */ color: oklch(42.0% 0.120 268.0);
Tailwind
colors: {
custom: {
50: '#7379af',
500: '#31478e',
950: '#000000',
},
}SCSS
$custom: #31478e; $custom-light: #7379af; $custom-dark: #000000;
JSON
{
"hex": "#31478e",
"rgb": {
"r": 49,
"g": 71,
"b": 142
},
"hsl": {
"h": 225.806,
"s": 48.691,
"l": 37.451
},
"oklch": {
"l": 0.41995,
"c": 0.12043,
"h": 268
},
"luminance": 0.07112
}Semantic roles & 50–950 ramp
primary
#31478E
secondary
#B4A267
accent
#B850D8
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090910
muted
#7B7B7F