#31487E#31487E
#31487E is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.1% C 0.095 H 265.1°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).
Color values
| HEX | #31487E |
|---|---|
| RGB | rgb(49, 72, 126) |
| HSL | hsl(222, 44%, 34%) |
| HSV | hsv(222, 61%, 49%) |
| CMYK | cmyk(61.1%, 42.9%, 0%, 50.6%) |
| CIE-LAB | lab(31.33, 8.99, -33.32) |
| CIE-LCH | lch(31.33, 34.51, 285.10°) |
| OKLab | oklab(41.11% -0.0081 -0.0947) |
| OKLCH | oklch(41.11% 0.095 265.1) |
| XYZ | xyz(7.3486, 6.7934, 20.6586) |
| Luminance | 0.0679 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.53
Darkish Blue
#014182
ΔE00 4.86
Twilight Blue
#0A437A
ΔE00 4.92
Dusk Blue
#26538D
ΔE00 5.28
Prussian Blue
#004577
ΔE00 6.18
Twilight
#4E518B
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31487E #7E6731
analogous
#316F7E #31487E #41317E
triadic
#31487E #7E3148 #487E31
tetradic
#31487E #7E316F #7E6731 #317E41
square
#31487E #7E316F #7E6731 #317E41
split-complementary
#31487E #7E4131 #6F7E31
monochromatic
#0F1626 #202F52 #31487E #4261AA #6682C3
Accessibility & contrast
On white
8.90
#31487E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#31487E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31487E
8.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31487E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31487E | 1.00 | 8.90 | 2.36 | 8.90 |
| #FFFFFF | 8.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#314D80
Deuteranopia (green-blind)
#26467D
Tritanopia (blue-blind)
#00545D
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #31487e; /* rgb */ color: rgb(49, 72, 126); /* oklch */ color: oklch(41.1% 0.095 265.1);
Tailwind
colors: {
custom: {
50: '#707aa4',
500: '#31487e',
950: '#000000',
},
}SCSS
$custom: #31487e; $custom-light: #707aa4; $custom-dark: #000000;
JSON
{
"hex": "#31487e",
"rgb": {
"r": 49,
"g": 72,
"b": 126
},
"hsl": {
"h": 222.078,
"s": 44,
"l": 34.314
},
"oklch": {
"l": 0.41108,
"c": 0.09508,
"h": 265.1
},
"luminance": 0.06794
}Semantic roles & 50–950 ramp
primary
#31487E
secondary
#AB9460
accent
#AE54D4
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F