#31559F#31559F
#31559F is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.3% C 0.127 H 262.9°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).
Color values
| HEX | #31559F |
|---|---|
| RGB | rgb(49, 85, 159) |
| HSL | hsl(220, 53%, 41%) |
| HSV | hsv(220, 69%, 62%) |
| CMYK | cmyk(69.2%, 46.5%, 0%, 37.6%) |
| CIE-LAB | lab(37.21, 12.60, -44.06) |
| CIE-LCH | lch(37.21, 45.83, 285.96°) |
| OKLab | oklab(46.29% -0.0157 -0.1261) |
| OKLCH | oklch(46.29% 0.127 262.9) |
| XYZ | xyz(10.7709, 9.6521, 34.0896) |
| Luminance | 0.0965 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim Blue
#3B5B92
ΔE00 2.79
Dusk Blue
#26538D
ΔE00 3.21
Sapphire
#0F52BA
ΔE00 3.73
Light Navy Blue
#2E5A88
ΔE00 4.41
Dusky Blue
#475F94
ΔE00 4.53
Cobalt (survey)
#1E488F
ΔE00 4.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31559F #9F7B31
analogous
#318C9F #31559F #44319F
triadic
#31559F #9F3155 #559F31
tetradic
#31559F #9F318C #9F7B31 #319F44
square
#31559F #9F318C #9F7B31 #319F44
split-complementary
#31559F #9F4431 #8C9F31
monochromatic
#142341 #233C70 #31559F #4771C6 #7695D5
Accessibility & contrast
On white
7.17
#31559F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#31559F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31559F
7.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31559F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31559F | 1.00 | 7.17 | 2.93 | 7.17 |
| #FFFFFF | 7.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#305DA2
Deuteranopia (green-blind)
#1A539D
Tritanopia (blue-blind)
#006672
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #31559f; /* rgb */ color: rgb(49, 85, 159); /* oklch */ color: oklch(46.3% 0.127 262.9);
Tailwind
colors: {
custom: {
50: '#7684bc',
500: '#31559f',
950: '#000000',
},
}SCSS
$custom: #31559f; $custom-light: #7684bc; $custom-dark: #000000;
JSON
{
"hex": "#31559f",
"rgb": {
"r": 49,
"g": 85,
"b": 159
},
"hsl": {
"h": 220.364,
"s": 52.885,
"l": 40.784
},
"oklch": {
"l": 0.46292,
"c": 0.12709,
"h": 262.9
},
"luminance": 0.09653
}Semantic roles & 50–950 ramp
primary
#31559F
secondary
#BDA36F
accent
#AD4CDC
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090A12
muted
#7B7C81