#31477C#31477C
#31477C is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.7% C 0.093 H 265.5°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).
Color values
| HEX | #31477C |
|---|---|
| RGB | rgb(49, 71, 124) |
| HSL | hsl(222, 43%, 34%) |
| HSV | hsv(222, 60%, 49%) |
| CMYK | cmyk(60.5%, 42.7%, 0%, 51.4%) |
| CIE-LAB | lab(30.91, 8.93, -32.74) |
| CIE-LCH | lch(30.91, 33.94, 285.26°) |
| OKLab | oklab(40.74% -0.0074 -0.093) |
| OKLCH | oklch(40.74% 0.093 265.5) |
| XYZ | xyz(7.1567, 6.6141, 19.9644) |
| Luminance | 0.0662 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.84
Darkish Blue
#014182
ΔE00 4.93
Twilight Blue
#0A437A
ΔE00 4.99
Dusk Blue
#26538D
ΔE00 5.68
Twilight
#4E518B
ΔE00 6.28
Prussian Blue
#004577
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31477C #7C6631
analogous
#316D7C #31477C #41317C
triadic
#31477C #7C3147 #477C31
tetradic
#31477C #7C316D #7C6631 #317C41
square
#31477C #7C316D #7C6631 #317C41
split-complementary
#31477C #7C4131 #6D7C31
monochromatic
#0E1524 #202E50 #31477C #4260A8 #6580C2
Accessibility & contrast
On white
9.04
#31477C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.32
#31477C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31477C
9.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31477C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31477C | 1.00 | 9.04 | 2.32 | 9.04 |
| #FFFFFF | 9.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#304C7E
Deuteranopia (green-blind)
#26467B
Tritanopia (blue-blind)
#00535B
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #31477c; /* rgb */ color: rgb(49, 71, 124); /* oklch */ color: oklch(40.7% 0.093 265.5);
Tailwind
colors: {
custom: {
50: '#7079a2',
500: '#31477c',
950: '#000000',
},
}SCSS
$custom: #31477c; $custom-light: #7079a2; $custom-dark: #000000;
JSON
{
"hex": "#31477c",
"rgb": {
"r": 49,
"g": 71,
"b": 124
},
"hsl": {
"h": 222.4,
"s": 43.353,
"l": 33.922
},
"oklch": {
"l": 0.40745,
"c": 0.09334,
"h": 265.5
},
"luminance": 0.06615
}Semantic roles & 50–950 ramp
primary
#31477C
secondary
#AA945F
accent
#AE55D3
background
#F7F7FA
surface
#EDEDF3
border
#C8C8CD
text
#08090F
muted
#7B7B7F