#40299E#40299E
#40299E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.177 H 283.6°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).
Color values
| HEX | #40299E |
|---|---|
| RGB | rgb(64, 41, 158) |
| HSL | hsl(252, 59%, 39%) |
| HSV | hsv(252, 74%, 62%) |
| CMYK | cmyk(59.5%, 74.1%, 0%, 38%) |
| CIE-LAB | lab(27.14, 42.59, -59.77) |
| CIE-LCH | lch(27.14, 73.39, 305.48°) |
| OKLab | oklab(39.06% 0.0415 -0.1722) |
| OKLCH | oklch(39.06% 0.177 283.6) |
| XYZ | xyz(9.0769, 5.1439, 32.8557) |
| Luminance | 0.0514 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.94
Sapphire (survey)
#2138AB
ΔE00 6.07
Royal
#0C1793
ΔE00 6.11
Ultramarine
#2000B1
ΔE00 6.60
Cobalt Blue
#030AA7
ΔE00 6.70
Darkslateblue
#483D8B
ΔE00 6.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40299E #879E29
analogous
#294D9E #40299E #7B299E
triadic
#40299E #9E4029 #299E40
tetradic
#40299E #9E294D #879E29 #299E7B
square
#40299E #9E294D #879E29 #299E7B
split-complementary
#40299E #9E7B29 #4D9E29
monochromatic
#19103D #2C1C6D #40299E #5639CC #7F69D8
Accessibility & contrast
On white
10.35
#40299E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#40299E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40299E
10.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40299E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40299E | 1.00 | 10.35 | 2.03 | 10.35 |
| #FFFFFF | 10.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#003C9C
Tritanopia (blue-blind)
#054961
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #40299e; /* rgb */ color: rgb(64, 41, 158); /* oklch */ color: oklch(39.1% 0.177 283.6);
Tailwind
colors: {
custom: {
50: '#8065bc',
500: '#40299e',
950: '#000000',
},
}SCSS
$custom: #40299e; $custom-light: #8065bc; $custom-dark: #000000;
JSON
{
"hex": "#40299e",
"rgb": {
"r": 64,
"g": 41,
"b": 158
},
"hsl": {
"h": 251.795,
"s": 58.794,
"l": 39.02
},
"oklch": {
"l": 0.39062,
"c": 0.17713,
"h": 283.6
},
"luminance": 0.05144
}Semantic roles & 50–950 ramp
primary
#40299E
secondary
#ADBF64
accent
#E246C3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81