#40419C#40419C
#40419C is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.8% C 0.145 H 277.9°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).
Color values
| HEX | #40419C |
|---|---|
| RGB | rgb(64, 65, 156) |
| HSL | hsl(239, 42%, 43%) |
| HSV | hsv(239, 59%, 61%) |
| CMYK | cmyk(59%, 58.3%, 0%, 38.8%) |
| CIE-LAB | lab(32.41, 27.39, -49.94) |
| CIE-LCH | lch(32.41, 56.96, 298.74°) |
| OKLab | oklab(42.84% 0.0199 -0.1433) |
| OKLCH | oklch(42.84% 0.145 277.9) |
| XYZ | xyz(10.0035, 7.2702, 32.3222) |
| Luminance | 0.0727 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 1.56
Darkslateblue
#483D8B
ΔE00 3.73
Ocean Blue
#4F42B5
ΔE00 4.53
Sapphire (survey)
#2138AB
ΔE00 4.58
Blue Blue
#2242C7
ΔE00 6.44
Cobalt
#0047AB
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40419C #9C9B40
analogous
#406F9C #40419C #6D409C
triadic
#40419C #9C4041 #419C40
tetradic
#40419C #9C406F #9C9B40 #409C6D
square
#40419C #9C406F #9C9B40 #409C6D
split-complementary
#40419C #9C6D40 #6F9C40
monochromatic
#1C1D45 #2E2F71 #40419C #5D5EBC #8889CE
Accessibility & contrast
On white
8.56
#40419C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.45
#40419C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40419C
8.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40419C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40419C | 1.00 | 8.56 | 2.45 | 8.56 |
| #FFFFFF | 8.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00509F
Deuteranopia (green-blind)
#00489A
Tritanopia (blue-blind)
#035768
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #40419c; /* rgb */ color: rgb(64, 65, 156); /* oklch */ color: oklch(42.8% 0.145 277.9);
Tailwind
colors: {
custom: {
50: '#7e75ba',
500: '#40419c',
950: '#000000',
},
}SCSS
$custom: #40419c; $custom-light: #7e75ba; $custom-dark: #000000;
JSON
{
"hex": "#40419c",
"rgb": {
"r": 64,
"g": 65,
"b": 156
},
"hsl": {
"h": 239.348,
"s": 41.818,
"l": 43.137
},
"oklch": {
"l": 0.42837,
"c": 0.14468,
"h": 277.9
},
"luminance": 0.07271
}Semantic roles & 50–950 ramp
primary
#40419C
secondary
#B9B87F
accent
#D056D2
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0812
muted
#7C7B81