#31489C#31489C
#31489C is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.3% C 0.139 H 268.5°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).
Color values
| HEX | #31489C |
|---|---|
| RGB | rgb(49, 72, 156) |
| HSL | hsl(227, 52%, 40%) |
| HSV | hsv(227, 69%, 61%) |
| CMYK | cmyk(68.6%, 53.8%, 0%, 38.8%) |
| CIE-LAB | lab(33.32, 20.12, -48.52) |
| CIE-LCH | lch(33.32, 52.52, 292.52°) |
| OKLab | oklab(43.27% -0.0037 -0.1394) |
| OKLCH | oklch(43.27% 0.139 268.5) |
| XYZ | xyz(9.5827, 7.6871, 32.4248) |
| Luminance | 0.0769 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.63
Cobalt (survey)
#1E488F
ΔE00 3.64
Blueberry
#464196
ΔE00 5.13
Sapphire
#0F52BA
ΔE00 5.68
Sapphire (survey)
#2138AB
ΔE00 5.69
Dusk Blue
#26538D
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31489C #9C8531
analogous
#317D9C #31489C #50319C
triadic
#31489C #9C3148 #489C31
tetradic
#31489C #9C317D #9C8531 #319C50
square
#31489C #9C317D #9C8531 #319C50
split-complementary
#31489C #9C5031 #7D9C31
monochromatic
#141D3F #22336D #31489C #4561C5 #7489D3
Accessibility & contrast
On white
8.28
#31489C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.54
#31489C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31489C
8.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31489C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31489C | 1.00 | 8.28 | 2.54 | 8.28 |
| #FFFFFF | 8.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0F539F
Deuteranopia (green-blind)
#004A9A
Tritanopia (blue-blind)
#005C6B
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #31489c; /* rgb */ color: rgb(49, 72, 156); /* oklch */ color: oklch(43.3% 0.139 268.5);
Tailwind
colors: {
custom: {
50: '#767aba',
500: '#31489c',
950: '#000000',
},
}SCSS
$custom: #31489c; $custom-light: #767aba; $custom-dark: #000000;
JSON
{
"hex": "#31489c",
"rgb": {
"r": 49,
"g": 72,
"b": 156
},
"hsl": {
"h": 227.103,
"s": 52.195,
"l": 40.196
},
"oklch": {
"l": 0.43266,
"c": 0.13947,
"h": 268.5
},
"luminance": 0.07688
}Semantic roles & 50–950 ramp
primary
#31489C
secondary
#BBAB6D
accent
#BD4CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090912
muted
#7B7B81