#42279C#42279C
#42279C is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.177 H 285.3°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).
Color values
| HEX | #42279C |
|---|---|
| RGB | rgb(66, 39, 156) |
| HSL | hsl(254, 60%, 38%) |
| HSV | hsv(254, 75%, 61%) |
| CMYK | cmyk(57.7%, 75%, 0%, 38.8%) |
| CIE-LAB | lab(26.76, 43.34, -59.16) |
| CIE-LCH | lch(26.76, 73.34, 306.22°) |
| OKLab | oklab(38.78% 0.0465 -0.1703) |
| OKLCH | oklch(38.78% 0.177 285.3) |
| XYZ | xyz(8.9712, 5.0091, 31.9402) |
| Luminance | 0.0501 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.87
Royal
#0C1793
ΔE00 6.05
Ultramarine
#2000B1
ΔE00 6.47
Cobalt Blue
#030AA7
ΔE00 6.62
Sapphire (survey)
#2138AB
ΔE00 6.71
Violet Blue
#510AC9
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42279C #819C27
analogous
#27469C #42279C #7C279C
triadic
#42279C #9C4227 #279C42
tetradic
#42279C #9C2746 #819C27 #279C7C
square
#42279C #9C2746 #819C27 #279C7C
split-complementary
#42279C #9C7C27 #469C27
monochromatic
#190F3A #2D1B6B #42279C #5734CC #8065D8
Accessibility & contrast
On white
10.49
#42279C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#42279C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42279C
10.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42279C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42279C | 1.00 | 10.49 | 2.00 | 10.49 |
| #FFFFFF | 10.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003C9A
Tritanopia (blue-blind)
#15475F
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #42279c; /* rgb */ color: rgb(66, 39, 156); /* oklch */ color: oklch(38.8% 0.177 285.3);
Tailwind
colors: {
custom: {
50: '#8164ba',
500: '#42279c',
950: '#000000',
},
}SCSS
$custom: #42279c; $custom-light: #8164ba; $custom-dark: #000000;
JSON
{
"hex": "#42279c",
"rgb": {
"r": 66,
"g": 39,
"b": 156
},
"hsl": {
"h": 253.846,
"s": 60,
"l": 38.235
},
"oklch": {
"l": 0.38781,
"c": 0.17659,
"h": 285.3
},
"luminance": 0.0501
}Semantic roles & 50–950 ramp
primary
#42279C
secondary
#A9BE61
accent
#E345BF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0612
muted
#7C7A81