#42299F#42299F
#42299F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.178 H 284.4°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).
Color values
| HEX | #42299F |
|---|---|
| RGB | rgb(66, 41, 159) |
| HSL | hsl(253, 59%, 39%) |
| HSV | hsv(253, 74%, 62%) |
| CMYK | cmyk(58.5%, 74.2%, 0%, 37.6%) |
| CIE-LAB | lab(27.43, 43.18, -59.90) |
| CIE-LCH | lch(27.43, 73.84, 305.79°) |
| OKLab | oklab(39.34% 0.0442 -0.1725) |
| OKLCH | oklch(39.34% 0.178 284.4) |
| XYZ | xyz(9.2958, 5.2468, 33.3171) |
| Luminance | 0.0525 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.88
Sapphire (survey)
#2138AB
ΔE00 6.22
Royal
#0C1793
ΔE00 6.35
Violet Blue
#510AC9
ΔE00 6.61
Ultramarine
#2000B1
ΔE00 6.65
Darkslateblue
#483D8B
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42299F #869F29
analogous
#294B9F #42299F #7D299F
triadic
#42299F #9F4229 #299F42
tetradic
#42299F #9F294B #869F29 #299F7D
square
#42299F #9F294B #869F29 #299F7D
split-complementary
#42299F #9F7D29 #4B9F29
monochromatic
#1A103E #2E1C6E #42299F #5839CC #816AD9
Accessibility & contrast
On white
10.25
#42299F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#42299F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42299F
10.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42299F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42299F | 1.00 | 10.25 | 2.05 | 10.25 |
| #FFFFFF | 10.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#0F4962
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #42299f; /* rgb */ color: rgb(66, 41, 159); /* oklch */ color: oklch(39.3% 0.178 284.4);
Tailwind
colors: {
custom: {
50: '#8166bc',
500: '#42299f',
950: '#000000',
},
}SCSS
$custom: #42299f; $custom-light: #8166bc; $custom-dark: #000000;
JSON
{
"hex": "#42299f",
"rgb": {
"r": 66,
"g": 41,
"b": 159
},
"hsl": {
"h": 252.712,
"s": 59,
"l": 39.216
},
"oklch": {
"l": 0.39339,
"c": 0.17809,
"h": 284.4
},
"luminance": 0.05247
}Semantic roles & 50–950 ramp
primary
#42299F
secondary
#ACBF65
accent
#E246C1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0612
muted
#7C7A81