#31488F#31488F
#31488F is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.3% C 0.121 H 267.6°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).
Color values
| HEX | #31488F |
|---|---|
| RGB | rgb(49, 72, 143) |
| HSL | hsl(225, 49%, 38%) |
| HSV | hsv(225, 66%, 56%) |
| CMYK | cmyk(65.7%, 49.7%, 0%, 43.9%) |
| CIE-LAB | lab(32.41, 15.27, -42.08) |
| CIE-LCH | lch(32.41, 44.76, 289.94°) |
| OKLab | oklab(42.29% -0.0051 -0.1205) |
| OKLCH | oklch(42.29% 0.121 267.6) |
| XYZ | xyz(8.5402, 7.2701, 26.9345) |
| Luminance | 0.0727 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.77
Cobalt
#0047AB
ΔE00 4.75
Darkish Blue
#014182
ΔE00 5.28
Dusk Blue
#26538D
ΔE00 5.36
Blueberry
#464196
ΔE00 5.70
Twilight Blue
#0A437A
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31488F #8F7831
analogous
#31778F #31488F #49318F
triadic
#31488F #8F3148 #488F31
tetradic
#31488F #8F3177 #8F7831 #318F49
square
#31488F #8F3177 #8F7831 #318F49
split-complementary
#31488F #8F4931 #778F31
monochromatic
#121A34 #213161 #31488F #415FBD #6D85CD
Accessibility & contrast
On white
8.56
#31488F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.45
#31488F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31488F
8.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31488F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31488F | 1.00 | 8.56 | 2.45 | 8.56 |
| #FFFFFF | 8.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#235192
Deuteranopia (green-blind)
#0E488E
Tritanopia (blue-blind)
#005864
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #31488f; /* rgb */ color: rgb(49, 72, 143); /* oklch */ color: oklch(42.3% 0.121 267.6);
Tailwind
colors: {
custom: {
50: '#737ab0',
500: '#31488f',
950: '#000000',
},
}SCSS
$custom: #31488f; $custom-light: #737ab0; $custom-dark: #000000;
JSON
{
"hex": "#31488f",
"rgb": {
"r": 49,
"g": 72,
"b": 143
},
"hsl": {
"h": 225.319,
"s": 48.958,
"l": 37.647
},
"oklch": {
"l": 0.42286,
"c": 0.12058,
"h": 267.6
},
"luminance": 0.07271
}Semantic roles & 50–950 ramp
primary
#31488F
secondary
#B5A267
accent
#B74FD9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090910
muted
#7B7B7F