#31458C#31458C
#31458C is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.4% C 0.120 H 268.8°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).
Color values
| HEX | #31458C |
|---|---|
| RGB | rgb(49, 69, 140) |
| HSL | hsl(227, 48%, 37%) |
| HSV | hsv(227, 65%, 55%) |
| CMYK | cmyk(65%, 50.7%, 0%, 45.1%) |
| CIE-LAB | lab(31.35, 16.17, -41.94) |
| CIE-LCH | lch(31.35, 44.95, 291.08°) |
| OKLab | oklab(41.41% -0.0024 -0.1201) |
| OKLCH | oklch(41.41% 0.12 268.8) |
| XYZ | xyz(8.1268, 6.8019, 25.6905) |
| Luminance | 0.0680 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.37
Blueberry
#464196
ΔE00 5.14
Cobalt
#0047AB
ΔE00 5.30
Darkish Blue
#014182
ΔE00 5.33
Twilight Blue
#0A437A
ΔE00 6.05
Twilight
#4E518B
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31458C #8C7831
analogous
#31738C #31458C #4B318C
triadic
#31458C #8C3145 #458C31
tetradic
#31458C #8C3173 #8C7831 #318C4B
square
#31458C #8C3173 #8C7831 #318C4B
split-complementary
#31458C #8C4B31 #738C31
monochromatic
#111831 #212F5F #31458C #415BB9 #6C81CC
Accessibility & contrast
On white
8.90
#31458C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#31458C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31458C
8.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31458C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31458C | 1.00 | 8.90 | 2.36 | 8.90 |
| #FFFFFF | 8.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F4E8F
Deuteranopia (green-blind)
#09468B
Tritanopia (blue-blind)
#005562
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #31458c; /* rgb */ color: rgb(49, 69, 140); /* oklch */ color: oklch(41.4% 0.120 268.8);
Tailwind
colors: {
custom: {
50: '#7378ae',
500: '#31458c',
950: '#000000',
},
}SCSS
$custom: #31458c; $custom-light: #7378ae; $custom-dark: #000000;
JSON
{
"hex": "#31458c",
"rgb": {
"r": 49,
"g": 69,
"b": 140
},
"hsl": {
"h": 226.813,
"s": 48.148,
"l": 37.059
},
"oklch": {
"l": 0.41413,
"c": 0.12014,
"h": 268.8
},
"luminance": 0.06803
}Semantic roles & 50–950 ramp
primary
#31458C
secondary
#B3A266
accent
#BA50D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F