#40269C#40269C
#40269C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.178 H 284.4°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).
Color values
| HEX | #40269C |
|---|---|
| RGB | rgb(64, 38, 156) |
| HSL | hsl(253, 61%, 38%) |
| HSV | hsv(253, 76%, 61%) |
| CMYK | cmyk(59%, 75.6%, 0%, 38.8%) |
| CIE-LAB | lab(26.38, 43.58, -59.80) |
| CIE-LCH | lch(26.38, 74.00, 306.09°) |
| OKLab | oklab(38.46% 0.0443 -0.1723) |
| OKLCH | oklch(38.46% 0.178 284.4) |
| XYZ | xyz(8.8064, 4.8760, 31.9232) |
| Luminance | 0.0488 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.69
Royal
#0C1793
ΔE00 5.71
Ultramarine
#2000B1
ΔE00 6.18
Cobalt Blue
#030AA7
ΔE00 6.28
Royal Blue (survey)
#0504AA
ΔE00 6.59
Sapphire (survey)
#2138AB
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40269C #829C26
analogous
#26479C #40269C #7B269C
triadic
#40269C #9C4026 #269C40
tetradic
#40269C #9C2647 #829C26 #269C7B
square
#40269C #9C2647 #829C26 #269C7B
split-complementary
#40269C #9C7B26 #479C26
monochromatic
#180E3A #2C1A6B #40269C #5432CD #7D63D9
Accessibility & contrast
On white
10.63
#40269C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#40269C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40269C
10.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40269C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40269C | 1.00 | 10.63 | 1.98 | 10.63 |
| #FFFFFF | 10.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#0B475F
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #40269c; /* rgb */ color: rgb(64, 38, 156); /* oklch */ color: oklch(38.5% 0.178 284.4);
Tailwind
colors: {
custom: {
50: '#8064ba',
500: '#40269c',
950: '#000000',
},
}SCSS
$custom: #40269c; $custom-light: #8064ba; $custom-dark: #000000;
JSON
{
"hex": "#40269c",
"rgb": {
"r": 64,
"g": 38,
"b": 156
},
"hsl": {
"h": 253.22,
"s": 60.825,
"l": 38.039
},
"oklch": {
"l": 0.38464,
"c": 0.17786,
"h": 284.4
},
"luminance": 0.04877
}Semantic roles & 50–950 ramp
primary
#40269C
secondary
#AABF5F
accent
#E444C1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0512
muted
#7C7A81