#40258F#40258F
#40258F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.163 H 287.2°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).
Color values
| HEX | #40258F |
|---|---|
| RGB | rgb(64, 37, 143) |
| HSL | hsl(255, 59%, 35%) |
| HSV | hsv(255, 74%, 56%) |
| CMYK | cmyk(55.2%, 74.1%, 0%, 43.9%) |
| CIE-LAB | lab(24.94, 40.19, -54.16) |
| CIE-LCH | lch(24.94, 67.44, 306.58°) |
| OKLab | oklab(37.07% 0.0483 -0.1558) |
| OKLCH | oklch(37.07% 0.163 287.2) |
| XYZ | xyz(7.7324, 4.3959, 26.4223) |
| Luminance | 0.0440 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 5.30
Royal
#0C1793
ΔE00 5.71
Indigo (survey)
#380282
ΔE00 5.92
Indigo
#4B0082
ΔE00 6.22
Darkslateblue
#483D8B
ΔE00 6.82
Cobalt Blue
#030AA7
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40258F #748F25
analogous
#253F8F #40258F #75258F
triadic
#40258F #8F4025 #258F40
tetradic
#40258F #8F253F #748F25 #258F75
square
#40258F #8F253F #748F25 #258F75
split-complementary
#40258F #8F7525 #3F8F25
monochromatic
#140C2E #2A185E #40258F #5632C0 #795AD4
Accessibility & contrast
On white
11.17
#40258F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#40258F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40258F
11.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40258F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40258F | 1.00 | 11.17 | 1.88 | 11.17 |
| #FFFFFF | 11.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#1F4258
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #40258f; /* rgb */ color: rgb(64, 37, 143); /* oklch */ color: oklch(37.1% 0.163 287.2);
Tailwind
colors: {
custom: {
50: '#7e62b1',
500: '#40258f',
950: '#000000',
},
}SCSS
$custom: #40258f; $custom-light: #7e62b1; $custom-dark: #000000;
JSON
{
"hex": "#40258f",
"rgb": {
"r": 64,
"g": 37,
"b": 143
},
"hsl": {
"h": 255.283,
"s": 58.889,
"l": 35.294
},
"oklch": {
"l": 0.37067,
"c": 0.16306,
"h": 287.2
},
"luminance": 0.04396
}Semantic roles & 50–950 ramp
primary
#40258F
secondary
#A0B957
accent
#E246BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980