#31478F#31478F
#31478F is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.1% C 0.122 H 268.1°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).
Color values
| HEX | #31478F |
|---|---|
| RGB | rgb(49, 71, 143) |
| HSL | hsl(226, 49%, 38%) |
| HSV | hsv(226, 66%, 56%) |
| CMYK | cmyk(65.7%, 50.3%, 0%, 43.9%) |
| CIE-LAB | lab(32.13, 15.94, -42.54) |
| CIE-LCH | lch(32.13, 45.42, 290.54°) |
| OKLab | oklab(42.07% -0.0041 -0.1218) |
| OKLCH | oklch(42.07% 0.122 268.1) |
| XYZ | xyz(8.4761, 7.1419, 26.9131) |
| Luminance | 0.0714 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.96
Cobalt
#0047AB
ΔE00 4.81
Darkish Blue
#014182
ΔE00 5.33
Blueberry
#464196
ΔE00 5.43
Dusk Blue
#26538D
ΔE00 5.70
Twilight Blue
#0A437A
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31478F #8F7931
analogous
#31768F #31478F #4A318F
triadic
#31478F #8F3147 #478F31
tetradic
#31478F #8F3176 #8F7931 #318F4A
square
#31478F #8F3176 #8F7931 #318F4A
split-complementary
#31478F #8F4A31 #768F31
monochromatic
#121A34 #213061 #31478F #415EBD #6D84CD
Accessibility & contrast
On white
8.65
#31478F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.43
#31478F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31478F
8.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31478F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31478F | 1.00 | 8.65 | 2.43 | 8.65 |
| #FFFFFF | 8.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#205092
Deuteranopia (green-blind)
#0A488E
Tritanopia (blue-blind)
#005864
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #31478f; /* rgb */ color: rgb(49, 71, 143); /* oklch */ color: oklch(42.1% 0.122 268.1);
Tailwind
colors: {
custom: {
50: '#7379b0',
500: '#31478f',
950: '#000000',
},
}SCSS
$custom: #31478f; $custom-light: #7379b0; $custom-dark: #000000;
JSON
{
"hex": "#31478f",
"rgb": {
"r": 49,
"g": 71,
"b": 143
},
"hsl": {
"h": 225.957,
"s": 48.958,
"l": 37.647
},
"oklch": {
"l": 0.42069,
"c": 0.1219,
"h": 268.1
},
"luminance": 0.07143
}Semantic roles & 50–950 ramp
primary
#31478F
secondary
#B5A367
accent
#B84FD9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090910
muted
#7B7B7F