#31476F#31476F
#31476F is a dark, moderate blue. Relative luminance 0.063; OKLCH L 39.9% C 0.073 H 261.7°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).
Color values
| HEX | #31476F |
|---|---|
| RGB | rgb(49, 71, 111) |
| HSL | hsl(219, 39%, 31%) |
| HSV | hsv(219, 56%, 44%) |
| CMYK | cmyk(55.9%, 36%, 0%, 56.5%) |
| CIE-LAB | lab(30.17, 4.27, -25.75) |
| CIE-LCH | lch(30.17, 26.10, 279.41°) |
| OKLab | oklab(39.93% -0.0106 -0.0726) |
| OKLCH | oklch(39.93% 0.073 261.7) |
| XYZ | xyz(6.3881, 6.3067, 15.9165) |
| Luminance | 0.0631 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Twilight Blue
#0A437A
ΔE00 5.07
Cobalt (survey)
#1E488F
ΔE00 5.35
Darkish Blue
#014182
ΔE00 5.59
Prussian Blue
#004577
ΔE00 5.93
Dusk Blue
#26538D
ΔE00 6.30
Marine Blue
#01386A
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31476F #6F5931
analogous
#31666F #31476F #3A316F
triadic
#31476F #6F3147 #476F31
tetradic
#31476F #6F3166 #6F5931 #316F3A
square
#31476F #6F3166 #6F5931 #316F3A
split-complementary
#31476F #6F3A31 #666F31
monochromatic
#0C111A #1E2C45 #31476F #446299 #6180B9
Accessibility & contrast
On white
9.29
#31476F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#31476F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31476F
9.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31476F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31476F | 1.00 | 9.29 | 2.26 | 9.29 |
| #FFFFFF | 9.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#374A71
Deuteranopia (green-blind)
#30446E
Tritanopia (blue-blind)
#105056
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #31476f; /* rgb */ color: rgb(49, 71, 111); /* oklch */ color: oklch(39.9% 0.073 261.7);
Tailwind
colors: {
custom: {
50: '#6e7a98',
500: '#31476f',
950: '#000000',
},
}SCSS
$custom: #31476f; $custom-light: #6e7a98; $custom-dark: #000000;
JSON
{
"hex": "#31476f",
"rgb": {
"r": 49,
"g": 71,
"b": 111
},
"hsl": {
"h": 218.71,
"s": 38.75,
"l": 31.373
},
"oklch": {
"l": 0.39933,
"c": 0.0734,
"h": 261.7
},
"luminance": 0.06307
}Semantic roles & 50–950 ramp
primary
#31476F
secondary
#A0885C
accent
#A559CF
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090D
muted
#7A7B7E