#31478C#31478C
#31478C is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.9% C 0.117 H 267.8°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).
Color values
| HEX | #31478C |
|---|---|
| RGB | rgb(49, 71, 140) |
| HSL | hsl(225, 48%, 37%) |
| HSV | hsv(225, 65%, 55%) |
| CMYK | cmyk(65%, 49.3%, 0%, 45.1%) |
| CIE-LAB | lab(31.93, 14.82, -41.02) |
| CIE-LCH | lch(31.93, 43.62, 289.87°) |
| OKLab | oklab(41.85% -0.0045 -0.1174) |
| OKLCH | oklch(41.85% 0.117 267.8) |
| XYZ | xyz(8.2519, 7.0522, 25.7322) |
| Luminance | 0.0705 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.92
Cobalt
#0047AB
ΔE00 5.14
Darkish Blue
#014182
ΔE00 5.16
Dusk Blue
#26538D
ΔE00 5.62
Blueberry
#464196
ΔE00 5.66
Twilight Blue
#0A437A
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31478C #8C7631
analogous
#31748C #31478C #49318C
triadic
#31478C #8C3147 #478C31
tetradic
#31478C #8C3174 #8C7631 #318C49
square
#31478C #8C3174 #8C7631 #318C49
split-complementary
#31478C #8C4931 #748C31
monochromatic
#111931 #21305F #31478C #415EB9 #6C83CC
Accessibility & contrast
On white
8.71
#31478C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#31478C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31478C
8.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31478C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31478C | 1.00 | 8.71 | 2.41 | 8.71 |
| #FFFFFF | 8.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#244F8F
Deuteranopia (green-blind)
#11478B
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #31478c; /* rgb */ color: rgb(49, 71, 140); /* oklch */ color: oklch(41.9% 0.117 267.8);
Tailwind
colors: {
custom: {
50: '#7379ae',
500: '#31478c',
950: '#000000',
},
}SCSS
$custom: #31478c; $custom-light: #7379ae; $custom-dark: #000000;
JSON
{
"hex": "#31478c",
"rgb": {
"r": 49,
"g": 71,
"b": 140
},
"hsl": {
"h": 225.495,
"s": 48.148,
"l": 37.059
},
"oklch": {
"l": 0.4185,
"c": 0.11747,
"h": 267.8
},
"luminance": 0.07053
}Semantic roles & 50–950 ramp
primary
#31478C
secondary
#B3A066
accent
#B750D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090910
muted
#7B7B7F