#31479B#31479B
#31479B is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.0% C 0.139 H 268.8°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).
Color values
| HEX | #31479B |
|---|---|
| RGB | rgb(49, 71, 155) |
| HSL | hsl(228, 52%, 40%) |
| HSV | hsv(228, 68%, 61%) |
| CMYK | cmyk(68.4%, 54.2%, 0%, 39.2%) |
| CIE-LAB | lab(32.97, 20.41, -48.48) |
| CIE-LCH | lch(32.97, 52.60, 292.83°) |
| OKLab | oklab(42.98% -0.0029 -0.1393) |
| OKLCH | oklch(42.98% 0.139 268.8) |
| XYZ | xyz(9.4342, 7.5251, 31.9593) |
| Luminance | 0.0753 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.73
Cobalt
#0047AB
ΔE00 3.77
Blueberry
#464196
ΔE00 4.88
Sapphire (survey)
#2138AB
ΔE00 5.48
Sapphire
#0F52BA
ΔE00 5.99
Dusk Blue
#26538D
ΔE00 6.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31479B #9B8531
analogous
#317C9B #31479B #50319B
triadic
#31479B #9B3147 #479B31
tetradic
#31479B #9B317C #9B8531 #319B50
square
#31479B #9B317C #9B8531 #319B50
split-complementary
#31479B #9B5031 #7C9B31
monochromatic
#141C3E #22326D #31479B #455FC4 #7387D3
Accessibility & contrast
On white
8.38
#31479B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.51
#31479B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31479B
8.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31479B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31479B | 1.00 | 8.38 | 2.51 | 8.38 |
| #FFFFFF | 8.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0D539E
Deuteranopia (green-blind)
#004999
Tritanopia (blue-blind)
#005B6A
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #31479b; /* rgb */ color: rgb(49, 71, 155); /* oklch */ color: oklch(43.0% 0.139 268.8);
Tailwind
colors: {
custom: {
50: '#7679b9',
500: '#31479b',
950: '#000000',
},
}SCSS
$custom: #31479b; $custom-light: #7679b9; $custom-dark: #000000;
JSON
{
"hex": "#31479b",
"rgb": {
"r": 49,
"g": 71,
"b": 155
},
"hsl": {
"h": 227.547,
"s": 51.961,
"l": 40
},
"oklch": {
"l": 0.42979,
"c": 0.13935,
"h": 268.8
},
"luminance": 0.07526
}Semantic roles & 50–950 ramp
primary
#31479B
secondary
#BBAB6D
accent
#BE4CDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80