#42395F#42395F
#42395F is a dark, moderate violet. Relative luminance 0.049; OKLCH L 37.1% C 0.065 H 293.9°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).
Color values
| HEX | #42395F |
|---|---|
| RGB | rgb(66, 57, 95) |
| HSL | hsl(254, 25%, 30%) |
| HSV | hsv(254, 40%, 37%) |
| CMYK | cmyk(30.5%, 40%, 0%, 62.7%) |
| CIE-LAB | lab(26.48, 13.47, -21.21) |
| CIE-LCH | lch(26.48, 25.13, 302.41°) |
| OKLab | oklab(37.15% 0.0262 -0.0591) |
| OKLCH | oklch(37.15% 0.065 293.9) |
| XYZ | xyz(5.7749, 4.9106, 11.4678) |
| Luminance | 0.0491 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 9.79
Navy Blue
#1B2A4A
ΔE00 9.88
Dusk
#4E5481
ΔE00 10.00
Twilight
#4E518B
ΔE00 10.50
Blueberry
#464196
ΔE00 11.63
Marine
#042E60
ΔE00 12.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42395F #565F39
analogous
#39435F #42395F #55395F
triadic
#42395F #5F4239 #395F42
tetradic
#42395F #5F3943 #565F39 #395F55
square
#42395F #5F3943 #565F39 #395F55
split-complementary
#42395F #5F5539 #435F39
monochromatic
#0D0B13 #272239 #42395F #5D5085 #7A6CA7
Accessibility & contrast
On white
10.59
#42395F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#42395F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42395F
10.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42395F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42395F | 1.00 | 10.59 | 1.98 | 10.59 |
| #FFFFFF | 10.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2F3F60
Deuteranopia (green-blind)
#303E5E
Tritanopia (blue-blind)
#3C4047
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #42395f; /* rgb */ color: rgb(66, 57, 95); /* oklch */ color: oklch(37.1% 0.065 293.9);
Tailwind
colors: {
custom: {
50: '#776f8c',
500: '#42395f',
950: '#000000',
},
}SCSS
$custom: #42395f; $custom-light: #776f8c; $custom-dark: #000000;
JSON
{
"hex": "#42395f",
"rgb": {
"r": 66,
"g": 57,
"b": 95
},
"hsl": {
"h": 254.211,
"s": 25,
"l": 29.804
},
"oklch": {
"l": 0.37149,
"c": 0.06469,
"h": 293.9
},
"luminance": 0.04911
}Semantic roles & 50–950 ramp
primary
#42395F
secondary
#858F65
accent
#C166AC
background
#F7F6F8
surface
#EDECF0
border
#C8C7CB
text
#09070C
muted
#7B7A7D