#31458F#31458F
#31458F is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.6% C 0.125 H 269.0°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).
Color values
| HEX | #31458F |
|---|---|
| RGB | rgb(49, 69, 143) |
| HSL | hsl(227, 49%, 38%) |
| HSV | hsv(227, 66%, 56%) |
| CMYK | cmyk(65.7%, 51.7%, 0%, 43.9%) |
| CIE-LAB | lab(31.56, 17.29, -43.45) |
| CIE-LCH | lch(31.56, 46.77, 291.69°) |
| OKLab | oklab(41.64% -0.0021 -0.1246) |
| OKLCH | oklch(41.64% 0.125 269) |
| XYZ | xyz(8.3510, 6.8916, 26.8714) |
| Luminance | 0.0689 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.42
Blueberry
#464196
ΔE00 4.91
Cobalt
#0047AB
ΔE00 4.98
Darkish Blue
#014182
ΔE00 5.51
Darkslateblue
#483D8B
ΔE00 6.21
Twilight Blue
#0A437A
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31458F #8F7B31
analogous
#31748F #31458F #4C318F
triadic
#31458F #8F3145 #458F31
tetradic
#31458F #8F3174 #8F7B31 #318F4C
square
#31458F #8F3174 #8F7B31 #318F4C
split-complementary
#31458F #8F4C31 #748F31
monochromatic
#121934 #212F61 #31458F #415BBD #6D82CD
Accessibility & contrast
On white
8.83
#31458F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#31458F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31458F
8.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31458F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31458F | 1.00 | 8.83 | 2.38 | 8.83 |
| #FFFFFF | 8.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B4F92
Deuteranopia (green-blind)
#00468D
Tritanopia (blue-blind)
#005663
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #31458f; /* rgb */ color: rgb(49, 69, 143); /* oklch */ color: oklch(41.6% 0.125 269.0);
Tailwind
colors: {
custom: {
50: '#7478b0',
500: '#31458f',
950: '#000000',
},
}SCSS
$custom: #31458f; $custom-light: #7478b0; $custom-dark: #000000;
JSON
{
"hex": "#31458f",
"rgb": {
"r": 49,
"g": 69,
"b": 143
},
"hsl": {
"h": 227.234,
"s": 48.958,
"l": 37.647
},
"oklch": {
"l": 0.41637,
"c": 0.12458,
"h": 269
},
"luminance": 0.06892
}Semantic roles & 50–950 ramp
primary
#31458F
secondary
#B5A467
accent
#BB4FD9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F