#42269C#42269C
#42269C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.178 H 285.4°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).
Color values
| HEX | #42269C |
|---|---|
| RGB | rgb(66, 38, 156) |
| HSL | hsl(254, 61%, 38%) |
| HSV | hsv(254, 76%, 61%) |
| CMYK | cmyk(57.7%, 75.6%, 0%, 38.8%) |
| CIE-LAB | lab(26.58, 43.86, -59.47) |
| CIE-LCH | lch(26.58, 73.90, 306.41°) |
| OKLab | oklab(38.65% 0.0473 -0.1712) |
| OKLCH | oklch(38.65% 0.178 285.4) |
| XYZ | xyz(8.9388, 4.9443, 31.9294) |
| Luminance | 0.0495 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.74
Royal
#0C1793
ΔE00 5.95
Ultramarine
#2000B1
ΔE00 6.30
Cobalt Blue
#030AA7
ΔE00 6.47
Violet Blue
#510AC9
ΔE00 6.69
Royal Blue (survey)
#0504AA
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42269C #809C26
analogous
#26459C #42269C #7D269C
triadic
#42269C #9C4226 #269C42
tetradic
#42269C #9C2645 #809C26 #269C7D
square
#42269C #9C2645 #809C26 #269C7D
split-complementary
#42269C #9C7D26 #459C26
monochromatic
#180E3A #2D1A6B #42269C #5732CD #7F63D9
Accessibility & contrast
On white
10.56
#42269C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.99
#42269C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42269C
10.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42269C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42269C | 1.00 | 10.56 | 1.99 | 10.56 |
| #FFFFFF | 10.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#15475F
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #42269c; /* rgb */ color: rgb(66, 38, 156); /* oklch */ color: oklch(38.7% 0.178 285.4);
Tailwind
colors: {
custom: {
50: '#8164ba',
500: '#42269c',
950: '#000000',
},
}SCSS
$custom: #42269c; $custom-light: #8164ba; $custom-dark: #000000;
JSON
{
"hex": "#42269c",
"rgb": {
"r": 66,
"g": 38,
"b": 156
},
"hsl": {
"h": 254.237,
"s": 60.825,
"l": 38.039
},
"oklch": {
"l": 0.38651,
"c": 0.17764,
"h": 285.4
},
"luminance": 0.04945
}Semantic roles & 50–950 ramp
primary
#42269C
secondary
#A8BF5F
accent
#E444BE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0512
muted
#7C7A81