#31579F#31579F
#31579F is a mid, vivid blue. Relative luminance 0.100; OKLCH L 46.7% C 0.125 H 261.8°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).
Color values
| HEX | #31579F |
|---|---|
| RGB | rgb(49, 87, 159) |
| HSL | hsl(219, 53%, 41%) |
| HSV | hsv(219, 69%, 62%) |
| CMYK | cmyk(69.2%, 45.3%, 0%, 37.6%) |
| CIE-LAB | lab(37.79, 11.29, -43.13) |
| CIE-LCH | lch(37.79, 44.59, 284.67°) |
| OKLab | oklab(46.74% -0.0177 -0.1233) |
| OKLCH | oklch(46.74% 0.125 261.8) |
| XYZ | xyz(10.9306, 9.9715, 34.1428) |
| Luminance | 0.0997 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim Blue
#3B5B92
ΔE00 2.36
Dusk Blue
#26538D
ΔE00 3.13
Sapphire
#0F52BA
ΔE00 3.87
Light Navy Blue
#2E5A88
ΔE00 3.98
Dusky Blue
#475F94
ΔE00 4.20
Denim
#1560BD
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31579F #9F7931
analogous
#318E9F #31579F #42319F
triadic
#31579F #9F3157 #579F31
tetradic
#31579F #9F318E #9F7931 #319F42
square
#31579F #9F318E #9F7931 #319F42
split-complementary
#31579F #9F4231 #8E9F31
monochromatic
#142441 #233D70 #31579F #4773C6 #7697D5
Accessibility & contrast
On white
7.01
#31579F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.99
#31579F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31579F
7.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31579F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31579F | 1.00 | 7.01 | 2.99 | 7.01 |
| #FFFFFF | 7.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#345EA2
Deuteranopia (green-blind)
#20549E
Tritanopia (blue-blind)
#006873
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #31579f; /* rgb */ color: rgb(49, 87, 159); /* oklch */ color: oklch(46.7% 0.125 261.8);
Tailwind
colors: {
custom: {
50: '#7685bc',
500: '#31579f',
950: '#000000',
},
}SCSS
$custom: #31579f; $custom-light: #7685bc; $custom-dark: #000000;
JSON
{
"hex": "#31579f",
"rgb": {
"r": 49,
"g": 87,
"b": 159
},
"hsl": {
"h": 219.273,
"s": 52.885,
"l": 40.784
},
"oklch": {
"l": 0.46739,
"c": 0.1246,
"h": 261.8
},
"luminance": 0.09973
}Semantic roles & 50–950 ramp
primary
#31579F
secondary
#BDA26F
accent
#AA4CDC
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81