#31419C#31419C
#31419C is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.149 H 271.0°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).
Color values
| HEX | #31419C |
|---|---|
| RGB | rgb(49, 65, 156) |
| HSL | hsl(231, 52%, 40%) |
| HSV | hsv(231, 69%, 61%) |
| CMYK | cmyk(68.6%, 58.3%, 0%, 38.8%) |
| CIE-LAB | lab(31.42, 24.79, -51.60) |
| CIE-LCH | lch(31.42, 57.24, 295.66°) |
| OKLab | oklab(41.84% 0.0025 -0.1486) |
| OKLCH | oklch(41.84% 0.149 271) |
| XYZ | xyz(9.1556, 6.8330, 32.2824) |
| Luminance | 0.0683 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.71
Blueberry
#464196
ΔE00 3.76
Cobalt
#0047AB
ΔE00 4.72
Cobalt (survey)
#1E488F
ΔE00 5.26
Darkslateblue
#483D8B
ΔE00 5.57
Blue Blue
#2242C7
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31419C #9C8C31
analogous
#31769C #31419C #56319C
triadic
#31419C #9C3141 #419C31
tetradic
#31419C #9C3176 #9C8C31 #319C56
square
#31419C #9C3176 #9C8C31 #319C56
split-complementary
#31419C #9C5631 #769C31
monochromatic
#141A3F #222E6D #31419C #4559C5 #7482D3
Accessibility & contrast
On white
8.87
#31419C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.37
#31419C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31419C
8.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31419C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31419C | 1.00 | 8.87 | 2.37 | 8.87 |
| #FFFFFF | 8.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004F9F
Deuteranopia (green-blind)
#00459A
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #31419c; /* rgb */ color: rgb(49, 65, 156); /* oklch */ color: oklch(41.8% 0.149 271.0);
Tailwind
colors: {
custom: {
50: '#7775ba',
500: '#31419c',
950: '#000000',
},
}SCSS
$custom: #31419c; $custom-light: #7775ba; $custom-dark: #000000;
JSON
{
"hex": "#31419c",
"rgb": {
"r": 49,
"g": 65,
"b": 156
},
"hsl": {
"h": 231.028,
"s": 52.195,
"l": 40.196
},
"oklch": {
"l": 0.4184,
"c": 0.14859,
"h": 271
},
"luminance": 0.06834
}Semantic roles & 50–950 ramp
primary
#31419C
secondary
#BBB06D
accent
#C64CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81