#31479C#31479C
#31479C is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.1% C 0.141 H 268.8°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).
Color values
| HEX | #31479C |
|---|---|
| RGB | rgb(49, 71, 156) |
| HSL | hsl(228, 52%, 40%) |
| HSV | hsv(228, 69%, 61%) |
| CMYK | cmyk(68.6%, 54.5%, 0%, 38.8%) |
| CIE-LAB | lab(33.05, 20.78, -48.97) |
| CIE-LCH | lch(33.05, 53.19, 293.00°) |
| OKLab | oklab(43.06% -0.0028 -0.1407) |
| OKLCH | oklch(43.06% 0.141 268.8) |
| XYZ | xyz(9.5186, 7.5588, 32.4034) |
| Luminance | 0.0756 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.71
Cobalt (survey)
#1E488F
ΔE00 3.82
Blueberry
#464196
ΔE00 4.87
Sapphire (survey)
#2138AB
ΔE00 5.38
Sapphire
#0F52BA
ΔE00 5.92
Blue Blue
#2242C7
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31479C #9C8631
analogous
#317C9C #31479C #51319C
triadic
#31479C #9C3147 #479C31
tetradic
#31479C #9C317C #9C8631 #319C51
square
#31479C #9C317C #9C8631 #319C51
split-complementary
#31479C #9C5131 #7C9C31
monochromatic
#141D3F #22326D #31479C #4560C5 #7488D3
Accessibility & contrast
On white
8.36
#31479C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.51
#31479C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31479C
8.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31479C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31479C | 1.00 | 8.36 | 2.51 | 8.36 |
| #FFFFFF | 8.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0A539F
Deuteranopia (green-blind)
#00499A
Tritanopia (blue-blind)
#005B6A
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #31479c; /* rgb */ color: rgb(49, 71, 156); /* oklch */ color: oklch(43.1% 0.141 268.8);
Tailwind
colors: {
custom: {
50: '#7679ba',
500: '#31479c',
950: '#000000',
},
}SCSS
$custom: #31479c; $custom-light: #7679ba; $custom-dark: #000000;
JSON
{
"hex": "#31479c",
"rgb": {
"r": 49,
"g": 71,
"b": 156
},
"hsl": {
"h": 227.664,
"s": 52.195,
"l": 40.196
},
"oklch": {
"l": 0.43057,
"c": 0.14078,
"h": 268.8
},
"luminance": 0.0756
}Semantic roles & 50–950 ramp
primary
#31479C
secondary
#BBAB6D
accent
#BE4CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090912
muted
#7B7B81