#31418F#31418F
#31418F is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.8% C 0.130 H 270.8°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).
Color values
| HEX | #31418F |
|---|---|
| RGB | rgb(49, 65, 143) |
| HSL | hsl(230, 49%, 38%) |
| HSV | hsv(230, 66%, 56%) |
| CMYK | cmyk(65.7%, 54.5%, 0%, 43.9%) |
| CIE-LAB | lab(30.44, 19.98, -45.26) |
| CIE-LCH | lch(30.44, 49.48, 293.82°) |
| OKLab | oklab(40.79% 0.0019 -0.1299) |
| OKLCH | oklch(40.79% 0.13 270.8) |
| XYZ | xyz(8.1132, 6.4160, 26.7921) |
| Luminance | 0.0642 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.08
Cobalt (survey)
#1E488F
ΔE00 4.53
Darkslateblue
#483D8B
ΔE00 5.24
Sapphire (survey)
#2138AB
ΔE00 5.38
Cobalt
#0047AB
ΔE00 5.54
Darkish Blue
#014182
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31418F #8F7F31
analogous
#31708F #31418F #50318F
triadic
#31418F #8F3141 #418F31
tetradic
#31418F #8F3170 #8F7F31 #318F50
square
#31418F #8F3170 #8F7F31 #318F50
split-complementary
#31418F #8F5031 #708F31
monochromatic
#121834 #212C61 #31418F #4156BD #6D7ECD
Accessibility & contrast
On white
9.20
#31418F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#31418F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31418F
9.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31418F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31418F | 1.00 | 9.20 | 2.28 | 9.20 |
| #FFFFFF | 9.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0D4C92
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #31418f; /* rgb */ color: rgb(49, 65, 143); /* oklch */ color: oklch(40.8% 0.130 270.8);
Tailwind
colors: {
custom: {
50: '#7475b0',
500: '#31418f',
950: '#000000',
},
}SCSS
$custom: #31418f; $custom-light: #7475b0; $custom-dark: #000000;
JSON
{
"hex": "#31418f",
"rgb": {
"r": 49,
"g": 65,
"b": 143
},
"hsl": {
"h": 229.787,
"s": 48.958,
"l": 37.647
},
"oklch": {
"l": 0.4079,
"c": 0.12994,
"h": 270.8
},
"luminance": 0.06417
}Semantic roles & 50–950 ramp
primary
#31418F
secondary
#B5A767
accent
#C14FD9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090811
muted
#7B7B80