#31418C#31418C
#31418C is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.6% C 0.126 H 270.8°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).
Color values
| HEX | #31418C |
|---|---|
| RGB | rgb(49, 65, 140) |
| HSL | hsl(229, 48%, 37%) |
| HSV | hsv(229, 65%, 55%) |
| CMYK | cmyk(65%, 53.6%, 0%, 45.1%) |
| CIE-LAB | lab(30.22, 18.88, -43.77) |
| CIE-LCH | lch(30.22, 47.66, 293.33°) |
| OKLab | oklab(40.56% 0.0017 -0.1255) |
| OKLCH | oklch(40.56% 0.126 270.8) |
| XYZ | xyz(7.8890, 6.3263, 25.6112) |
| Luminance | 0.0633 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.30
Cobalt (survey)
#1E488F
ΔE00 4.47
Darkslateblue
#483D8B
ΔE00 5.28
Sapphire (survey)
#2138AB
ΔE00 5.82
Cobalt
#0047AB
ΔE00 5.83
Darkish Blue
#014182
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31418C #8C7C31
analogous
#316E8C #31418C #4F318C
triadic
#31418C #8C3141 #418C31
tetradic
#31418C #8C316E #8C7C31 #318C4F
square
#31418C #8C316E #8C7C31 #318C4F
split-complementary
#31418C #8C4F31 #6E8C31
monochromatic
#111731 #212C5F #31418C #4156B9 #6C7DCC
Accessibility & contrast
On white
9.27
#31418C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.27
#31418C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31418C
9.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31418C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31418C | 1.00 | 9.27 | 2.27 | 9.27 |
| #FFFFFF | 9.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#134B8F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #31418c; /* rgb */ color: rgb(49, 65, 140); /* oklch */ color: oklch(40.6% 0.126 270.8);
Tailwind
colors: {
custom: {
50: '#7375ae',
500: '#31418c',
950: '#000000',
},
}SCSS
$custom: #31418c; $custom-light: #7375ae; $custom-dark: #000000;
JSON
{
"hex": "#31418c",
"rgb": {
"r": 49,
"g": 65,
"b": 140
},
"hsl": {
"h": 229.451,
"s": 48.148,
"l": 37.059
},
"oklch": {
"l": 0.40557,
"c": 0.12555,
"h": 270.8
},
"luminance": 0.06327
}Semantic roles & 50–950 ramp
primary
#31418C
secondary
#B3A566
accent
#C050D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F