#421F9E#421F9E
#421F9E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.187 H 286.0°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).
Color values
| HEX | #421F9E |
|---|---|
| RGB | rgb(66, 31, 158) |
| HSL | hsl(257, 67%, 37%) |
| HSV | hsv(257, 80%, 62%) |
| CMYK | cmyk(58.2%, 80.4%, 0%, 38%) |
| CIE-LAB | lab(25.58, 47.87, -62.32) |
| CIE-LCH | lch(25.58, 78.59, 307.53°) |
| OKLab | oklab(38.02% 0.0516 -0.1795) |
| OKLCH | oklch(38.02% 0.187 286) |
| XYZ | xyz(8.9064, 4.6063, 32.7609) |
| Luminance | 0.0461 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.84
Ultramarine
#2000B1
ΔE00 5.17
Royal
#0C1793
ΔE00 5.53
Cobalt Blue
#030AA7
ΔE00 5.55
Royal Blue (survey)
#0504AA
ΔE00 5.76
Indigo (survey)
#380282
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#421F9E #7B9E1F
analogous
#1F3C9E #421F9E #811F9E
triadic
#421F9E #9E421F #1F9E42
tetradic
#421F9E #9E1F3C #7B9E1F #1F9E81
square
#421F9E #9E1F3C #7B9E1F #1F9E81
split-complementary
#421F9E #9E811F #3C9E1F
monochromatic
#170B38 #2D156B #421F9E #5729D1 #7E59DE
Accessibility & contrast
On white
10.93
#421F9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#421F9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #421F9E
10.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##421F9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##421F9E | 1.00 | 10.93 | 1.92 | 10.93 |
| #FFFFFF | 10.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00399C
Tritanopia (blue-blind)
#12455F
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #421f9e; /* rgb */ color: rgb(66, 31, 158); /* oklch */ color: oklch(38.0% 0.187 286.0);
Tailwind
colors: {
custom: {
50: '#8260bc',
500: '#421f9e',
950: '#000000',
},
}SCSS
$custom: #421f9e; $custom-light: #8260bc; $custom-dark: #000000;
JSON
{
"hex": "#421f9e",
"rgb": {
"r": 66,
"g": 31,
"b": 158
},
"hsl": {
"h": 256.535,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.38017,
"c": 0.18679,
"h": 286
},
"luminance": 0.04607
}Semantic roles & 50–950 ramp
primary
#421F9E
secondary
#A5C256
accent
#EA3EBB
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981