#31489E#31489E
#31489E is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.4% C 0.142 H 268.6°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).
Color values
| HEX | #31489E |
|---|---|
| RGB | rgb(49, 72, 158) |
| HSL | hsl(227, 53%, 41%) |
| HSV | hsv(227, 69%, 62%) |
| CMYK | cmyk(69%, 54.4%, 0%, 38%) |
| CIE-LAB | lab(33.47, 20.86, -49.49) |
| CIE-LCH | lch(33.47, 53.71, 292.86°) |
| OKLab | oklab(43.42% -0.0036 -0.1423) |
| OKLCH | oklch(43.42% 0.142 268.6) |
| XYZ | xyz(9.7534, 7.7554, 33.3241) |
| Luminance | 0.0776 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.52
Cobalt (survey)
#1E488F
ΔE00 3.84
Blueberry
#464196
ΔE00 5.11
Sapphire (survey)
#2138AB
ΔE00 5.52
Sapphire
#0F52BA
ΔE00 5.54
Blue Blue
#2242C7
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31489E #9E8731
analogous
#317F9E #31489E #50319E
triadic
#31489E #9E3148 #489E31
tetradic
#31489E #9E317F #9E8731 #319E50
square
#31489E #9E317F #9E8731 #319E50
split-complementary
#31489E #9E5031 #7F9E31
monochromatic
#141D41 #23336F #31489E #4661C6 #7589D4
Accessibility & contrast
On white
8.23
#31489E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.55
#31489E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31489E
8.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31489E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31489E | 1.00 | 8.23 | 2.55 | 8.23 |
| #FFFFFF | 8.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0954A1
Deuteranopia (green-blind)
#004A9C
Tritanopia (blue-blind)
#005D6C
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #31489e; /* rgb */ color: rgb(49, 72, 158); /* oklch */ color: oklch(43.4% 0.142 268.6);
Tailwind
colors: {
custom: {
50: '#767abb',
500: '#31489e',
950: '#000000',
},
}SCSS
$custom: #31489e; $custom-light: #767abb; $custom-dark: #000000;
JSON
{
"hex": "#31489e",
"rgb": {
"r": 49,
"g": 72,
"b": 158
},
"hsl": {
"h": 227.339,
"s": 52.657,
"l": 40.588
},
"oklch": {
"l": 0.43422,
"c": 0.14233,
"h": 268.6
},
"luminance": 0.07756
}Semantic roles & 50–950 ramp
primary
#31489E
secondary
#BCAC6E
accent
#BE4CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0912
muted
#7C7B81