#31489F#31489F
#31489F is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.5% C 0.144 H 268.6°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).
Color values
| HEX | #31489F |
|---|---|
| RGB | rgb(49, 72, 159) |
| HSL | hsl(227, 53%, 41%) |
| HSV | hsv(227, 69%, 62%) |
| CMYK | cmyk(69.2%, 54.7%, 0%, 37.6%) |
| CIE-LAB | lab(33.54, 21.23, -49.98) |
| CIE-LCH | lch(33.54, 54.30, 293.02°) |
| OKLab | oklab(43.5% -0.0035 -0.1437) |
| OKLCH | oklch(43.5% 0.144 268.6) |
| XYZ | xyz(9.8398, 7.7899, 33.7792) |
| Luminance | 0.0779 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.48
Cobalt (survey)
#1E488F
ΔE00 3.95
Blueberry
#464196
ΔE00 5.11
Sapphire (survey)
#2138AB
ΔE00 5.44
Sapphire
#0F52BA
ΔE00 5.47
Blue Blue
#2242C7
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31489F #9F8831
analogous
#317F9F #31489F #51319F
triadic
#31489F #9F3148 #489F31
tetradic
#31489F #9F317F #9F8831 #319F51
square
#31489F #9F317F #9F8831 #319F51
split-complementary
#31489F #9F5131 #7F9F31
monochromatic
#141E41 #233370 #31489F #4762C6 #768AD5
Accessibility & contrast
On white
8.21
#31489F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.56
#31489F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31489F
8.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31489F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31489F | 1.00 | 8.21 | 2.56 | 8.21 |
| #FFFFFF | 8.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0654A2
Deuteranopia (green-blind)
#004A9D
Tritanopia (blue-blind)
#005D6C
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #31489f; /* rgb */ color: rgb(49, 72, 159); /* oklch */ color: oklch(43.5% 0.144 268.6);
Tailwind
colors: {
custom: {
50: '#777abc',
500: '#31489f',
950: '#000000',
},
}SCSS
$custom: #31489f; $custom-light: #777abc; $custom-dark: #000000;
JSON
{
"hex": "#31489f",
"rgb": {
"r": 49,
"g": 72,
"b": 159
},
"hsl": {
"h": 227.455,
"s": 52.885,
"l": 40.784
},
"oklch": {
"l": 0.435,
"c": 0.14375,
"h": 268.6
},
"luminance": 0.07791
}Semantic roles & 50–950 ramp
primary
#31489F
secondary
#BDAD6F
accent
#BE4CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0912
muted
#7C7B81