#3A126F#3A126F
#3A126F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.145 H 296.0°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).
Color values
| HEX | #3A126F |
|---|---|
| RGB | rgb(58, 18, 111) |
| HSL | hsl(266, 72%, 25%) |
| HSV | hsv(266, 84%, 44%) |
| CMYK | cmyk(47.7%, 83.8%, 0%, 56.5%) |
| CIE-LAB | lab(17.83, 39.39, -45.57) |
| CIE-LCH | lch(17.83, 60.23, 310.84°) |
| OKLab | oklab(30.96% 0.0638 -0.1306) |
| OKLCH | oklch(30.96% 0.145 296) |
| XYZ | xyz(4.8297, 2.4797, 15.2600) |
| Luminance | 0.0248 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.89
Royal Purple (survey)
#4B006E
ΔE00 4.03
Indigo
#4B0082
ΔE00 4.29
Midnight Blue
#191970
ΔE00 5.65
Dark Indigo
#1F0954
ΔE00 5.81
Dark Royal Blue
#02066F
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A126F #476F12
analogous
#12196F #3A126F #68126F
triadic
#3A126F #6F3A12 #126F3A
tetradic
#3A126F #6F1219 #476F12 #126F68
square
#3A126F #6F1219 #476F12 #126F68
split-complementary
#3A126F #6F6812 #196F12
monochromatic
#0E041A #1E093A #3A126F #561BA4 #7123D8
Accessibility & contrast
On white
14.04
#3A126F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#3A126F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A126F
14.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A126F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A126F | 1.00 | 14.04 | 1.50 | 14.04 |
| #FFFFFF | 14.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#2B2D41
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #3a126f; /* rgb */ color: rgb(58, 18, 111); /* oklch */ color: oklch(31.0% 0.145 296.0);
Tailwind
colors: {
custom: {
50: '#775699',
500: '#3a126f',
950: '#000000',
},
}SCSS
$custom: #3a126f; $custom-light: #775699; $custom-dark: #000000;
JSON
{
"hex": "#3a126f",
"rgb": {
"r": 58,
"g": 18,
"b": 111
},
"hsl": {
"h": 265.806,
"s": 72.093,
"l": 25.294
},
"oklch": {
"l": 0.30965,
"c": 0.14537,
"h": 296
},
"luminance": 0.0248
}Semantic roles & 50–950 ramp
primary
#3A126F
secondary
#76A637
accent
#EF39A1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E