#42269F#42269F
#42269F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.181 H 284.9°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).
Color values
| HEX | #42269F |
|---|---|
| RGB | rgb(66, 38, 159) |
| HSL | hsl(254, 61%, 39%) |
| HSV | hsv(254, 76%, 62%) |
| CMYK | cmyk(58.5%, 76.1%, 0%, 37.6%) |
| CIE-LAB | lab(26.87, 44.76, -60.82) |
| CIE-LCH | lch(26.87, 75.51, 306.35°) |
| OKLab | oklab(38.95% 0.0465 -0.1752) |
| OKLCH | oklch(38.95% 0.181 284.9) |
| XYZ | xyz(9.1960, 5.0471, 33.2838) |
| Luminance | 0.0505 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.41
Royal
#0C1793
ΔE00 6.04
Ultramarine
#2000B1
ΔE00 6.12
Violet Blue
#510AC9
ΔE00 6.32
Cobalt Blue
#030AA7
ΔE00 6.37
Royal Blue (survey)
#0504AA
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42269F #839F26
analogous
#26469F #42269F #7E269F
triadic
#42269F #9F4226 #269F42
tetradic
#42269F #9F2646 #839F26 #269F7E
square
#42269F #9F2646 #839F26 #269F7E
split-complementary
#42269F #9F7E26 #469F26
monochromatic
#190E3C #2D1A6E #42269F #5834CE #8065DA
Accessibility & contrast
On white
10.45
#42269F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#42269F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42269F
10.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42269F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42269F | 1.00 | 10.45 | 2.01 | 10.45 |
| #FFFFFF | 10.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003C9D
Tritanopia (blue-blind)
#0F4861
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #42269f; /* rgb */ color: rgb(66, 38, 159); /* oklch */ color: oklch(38.9% 0.181 284.9);
Tailwind
colors: {
custom: {
50: '#8264bc',
500: '#42269f',
950: '#000000',
},
}SCSS
$custom: #42269f; $custom-light: #8264bc; $custom-dark: #000000;
JSON
{
"hex": "#42269f",
"rgb": {
"r": 66,
"g": 38,
"b": 159
},
"hsl": {
"h": 253.884,
"s": 61.421,
"l": 38.627
},
"oklch": {
"l": 0.38946,
"c": 0.18124,
"h": 284.9
},
"luminance": 0.05048
}Semantic roles & 50–950 ramp
primary
#42269F
secondary
#AAC061
accent
#E543BF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81