#31408C#31408C
#31408C is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.127 H 271.2°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).
Color values
| HEX | #31408C |
|---|---|
| RGB | rgb(49, 64, 140) |
| HSL | hsl(230, 48%, 37%) |
| HSV | hsv(230, 65%, 55%) |
| CMYK | cmyk(65%, 54.3%, 0%, 45.1%) |
| CIE-LAB | lab(29.94, 19.55, -44.22) |
| CIE-LCH | lch(29.94, 48.35, 293.85°) |
| OKLab | oklab(40.35% 0.0027 -0.1269) |
| OKLCH | oklch(40.35% 0.127 271.2) |
| XYZ | xyz(7.8321, 6.2125, 25.5923) |
| Luminance | 0.0621 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.15
Cobalt (survey)
#1E488F
ΔE00 4.77
Darkslateblue
#483D8B
ΔE00 5.07
Sapphire (survey)
#2138AB
ΔE00 5.64
Cobalt
#0047AB
ΔE00 5.99
Darkish Blue
#014182
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31408C #8C7D31
analogous
#316E8C #31408C #50318C
triadic
#31408C #8C3140 #408C31
tetradic
#31408C #8C316E #8C7D31 #318C50
square
#31408C #8C316E #8C7D31 #318C50
split-complementary
#31408C #8C5031 #6E8C31
monochromatic
#111731 #212B5F #31408C #4155B9 #6C7CCC
Accessibility & contrast
On white
9.36
#31408C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#31408C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31408C
9.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31408C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31408C | 1.00 | 9.36 | 2.24 | 9.36 |
| #FFFFFF | 9.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0F4B8F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #31408c; /* rgb */ color: rgb(49, 64, 140); /* oklch */ color: oklch(40.3% 0.127 271.2);
Tailwind
colors: {
custom: {
50: '#7374ae',
500: '#31408c',
950: '#000000',
},
}SCSS
$custom: #31408c; $custom-light: #7374ae; $custom-dark: #000000;
JSON
{
"hex": "#31408c",
"rgb": {
"r": 49,
"g": 64,
"b": 140
},
"hsl": {
"h": 230.11,
"s": 48.148,
"l": 37.059
},
"oklch": {
"l": 0.40347,
"c": 0.12691,
"h": 271.2
},
"luminance": 0.06213
}Semantic roles & 50–950 ramp
primary
#31408C
secondary
#B3A666
accent
#C150D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F