#31479E#31479E
#31479E is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.2% C 0.144 H 268.9°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).
Color values
| HEX | #31479E |
|---|---|
| RGB | rgb(49, 71, 158) |
| HSL | hsl(228, 53%, 41%) |
| HSV | hsv(228, 69%, 62%) |
| CMYK | cmyk(69%, 55.1%, 0%, 38%) |
| CIE-LAB | lab(33.19, 21.53, -49.94) |
| CIE-LCH | lch(33.19, 54.38, 293.32°) |
| OKLab | oklab(43.22% -0.0027 -0.1436) |
| OKLCH | oklch(43.22% 0.144 268.9) |
| XYZ | xyz(9.6893, 7.6271, 33.3027) |
| Luminance | 0.0763 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.61
Cobalt (survey)
#1E488F
ΔE00 4.02
Blueberry
#464196
ΔE00 4.86
Sapphire (survey)
#2138AB
ΔE00 5.21
Sapphire
#0F52BA
ΔE00 5.78
Blue Blue
#2242C7
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31479E #9E8831
analogous
#317D9E #31479E #51319E
triadic
#31479E #9E3147 #479E31
tetradic
#31479E #9E317D #9E8831 #319E51
square
#31479E #9E317D #9E8831 #319E51
split-complementary
#31479E #9E5131 #7D9E31
monochromatic
#141D41 #23326F #31479E #4660C6 #7588D4
Accessibility & contrast
On white
8.31
#31479E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.53
#31479E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31479E
8.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31479E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31479E | 1.00 | 8.31 | 2.53 | 8.31 |
| #FFFFFF | 8.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0353A1
Deuteranopia (green-blind)
#00499C
Tritanopia (blue-blind)
#005C6B
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #31479e; /* rgb */ color: rgb(49, 71, 158); /* oklch */ color: oklch(43.2% 0.144 268.9);
Tailwind
colors: {
custom: {
50: '#7779bb',
500: '#31479e',
950: '#000000',
},
}SCSS
$custom: #31479e; $custom-light: #7779bb; $custom-dark: #000000;
JSON
{
"hex": "#31479e",
"rgb": {
"r": 49,
"g": 71,
"b": 158
},
"hsl": {
"h": 227.89,
"s": 52.657,
"l": 40.588
},
"oklch": {
"l": 0.43215,
"c": 0.14363,
"h": 268.9
},
"luminance": 0.07628
}Semantic roles & 50–950 ramp
primary
#31479E
secondary
#BCAD6E
accent
#BF4CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0912
muted
#7C7B81