#40269F#40269F
#40269F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.181 H 283.9°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).
Color values
| HEX | #40269F |
|---|---|
| RGB | rgb(64, 38, 159) |
| HSL | hsl(253, 61%, 39%) |
| HSV | hsv(253, 76%, 62%) |
| CMYK | cmyk(59.7%, 76.1%, 0%, 37.6%) |
| CIE-LAB | lab(26.67, 44.49, -61.14) |
| CIE-LCH | lch(26.67, 75.62, 306.04°) |
| OKLab | oklab(38.76% 0.0435 -0.1762) |
| OKLCH | oklch(38.76% 0.181 283.9) |
| XYZ | xyz(9.0635, 4.9788, 33.2776) |
| Luminance | 0.0498 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.36
Royal
#0C1793
ΔE00 5.80
Ultramarine
#2000B1
ΔE00 6.00
Cobalt Blue
#030AA7
ΔE00 6.19
Violet Blue
#510AC9
ΔE00 6.42
Royal Blue (survey)
#0504AA
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40269F #859F26
analogous
#26489F #40269F #7C269F
triadic
#40269F #9F4026 #269F40
tetradic
#40269F #9F2648 #859F26 #269F7C
square
#40269F #9F2648 #859F26 #269F7C
split-complementary
#40269F #9F7C26 #489F26
monochromatic
#180E3C #2C1A6E #40269F #5534CE #7E65DA
Accessibility & contrast
On white
10.52
#40269F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#40269F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40269F
10.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40269F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40269F | 1.00 | 10.52 | 2.00 | 10.52 |
| #FFFFFF | 10.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#034861
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #40269f; /* rgb */ color: rgb(64, 38, 159); /* oklch */ color: oklch(38.8% 0.181 283.9);
Tailwind
colors: {
custom: {
50: '#8164bc',
500: '#40269f',
950: '#000000',
},
}SCSS
$custom: #40269f; $custom-light: #8164bc; $custom-dark: #000000;
JSON
{
"hex": "#40269f",
"rgb": {
"r": 64,
"g": 38,
"b": 159
},
"hsl": {
"h": 252.893,
"s": 61.421,
"l": 38.627
},
"oklch": {
"l": 0.38762,
"c": 0.18148,
"h": 283.9
},
"luminance": 0.04979
}Semantic roles & 50–950 ramp
primary
#40269F
secondary
#ACC061
accent
#E543C2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0512
muted
#7C7A81