#31579C#31579C
#31579C is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.5% C 0.120 H 261.3°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).
Color values
| HEX | #31579C |
|---|---|
| RGB | rgb(49, 87, 156) |
| HSL | hsl(219, 52%, 40%) |
| HSV | hsv(219, 69%, 61%) |
| CMYK | cmyk(68.6%, 44.2%, 0%, 38.8%) |
| CIE-LAB | lab(37.61, 10.17, -41.63) |
| CIE-LCH | lch(37.61, 42.86, 283.72°) |
| OKLab | oklab(46.54% -0.0182 -0.1189) |
| OKLCH | oklch(46.54% 0.12 261.3) |
| XYZ | xyz(10.6734, 9.8686, 32.7884) |
| Luminance | 0.0987 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim Blue
#3B5B92
ΔE00 2.11
Dusk Blue
#26538D
ΔE00 2.80
Light Navy Blue
#2E5A88
ΔE00 3.68
Dusky Blue
#475F94
ΔE00 4.11
Sapphire
#0F52BA
ΔE00 4.17
Cobalt (survey)
#1E488F
ΔE00 5.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31579C #9C7631
analogous
#318C9C #31579C #41319C
triadic
#31579C #9C3157 #579C31
tetradic
#31579C #9C318C #9C7631 #319C41
square
#31579C #9C318C #9C7631 #319C41
split-complementary
#31579C #9C4131 #8C9C31
monochromatic
#14233F #223D6D #31579C #4573C5 #7496D3
Accessibility & contrast
On white
7.06
#31579C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.97
#31579C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31579C
7.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31579C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31579C | 1.00 | 7.06 | 2.97 | 7.06 |
| #FFFFFF | 7.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#365E9F
Deuteranopia (green-blind)
#24549B
Tritanopia (blue-blind)
#006772
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #31579c; /* rgb */ color: rgb(49, 87, 156); /* oklch */ color: oklch(46.5% 0.120 261.3);
Tailwind
colors: {
custom: {
50: '#7585ba',
500: '#31579c',
950: '#000000',
},
}SCSS
$custom: #31579c; $custom-light: #7585ba; $custom-dark: #000000;
JSON
{
"hex": "#31579c",
"rgb": {
"r": 49,
"g": 87,
"b": 156
},
"hsl": {
"h": 218.692,
"s": 52.195,
"l": 40.196
},
"oklch": {
"l": 0.46536,
"c": 0.12032,
"h": 261.3
},
"luminance": 0.0987
}Semantic roles & 50–950 ramp
primary
#31579C
secondary
#BBA06D
accent
#A94CDC
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B11
muted
#7B7C80