#3A195E#3A195E
#3A195E is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.2% C 0.117 H 301.6°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).
Color values
| HEX | #3A195E |
|---|---|
| RGB | rgb(58, 25, 94) |
| HSL | hsl(269, 58%, 23%) |
| HSV | hsv(269, 73%, 37%) |
| CMYK | cmyk(38.3%, 73.4%, 0%, 63.1%) |
| CIE-LAB | lab(17.47, 31.25, -34.97) |
| CIE-LCH | lch(17.47, 46.89, 311.79°) |
| OKLab | oklab(30.23% 0.0613 -0.0995) |
| OKLCH | oklch(30.23% 0.117 301.6) |
| XYZ | xyz(4.1124, 2.4029, 10.8347) |
| Luminance | 0.0240 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 5.57
Royal Purple (survey)
#4B006E
ΔE00 5.71
Dark Violet
#34013F
ΔE00 7.27
Dark Purple
#35063E
ΔE00 7.30
Midnight Blue
#191970
ΔE00 7.31
Deep Purple
#36013F
ΔE00 7.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A195E #3D5E19
analogous
#191A5E #3A195E #5C195E
triadic
#3A195E #5E3A19 #195E3A
tetradic
#3A195E #5E191A #3D5E19 #195E5C
square
#3A195E #5E191A #3D5E19 #195E5C
split-complementary
#3A195E #5E5C19 #1A5E19
monochromatic
#0F0618 #1C0C2E #3A195E #58268E #7633BF
Accessibility & contrast
On white
14.18
#3A195E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#3A195E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A195E
14.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A195E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A195E | 1.00 | 14.18 | 1.48 | 14.18 |
| #FFFFFF | 14.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#322939
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #3a195e; /* rgb */ color: rgb(58, 25, 94); /* oklch */ color: oklch(30.2% 0.117 301.6);
Tailwind
colors: {
custom: {
50: '#74588c',
500: '#3a195e',
950: '#000000',
},
}SCSS
$custom: #3a195e; $custom-light: #74588c; $custom-dark: #000000;
JSON
{
"hex": "#3a195e",
"rgb": {
"r": 58,
"g": 25,
"b": 94
},
"hsl": {
"h": 268.696,
"s": 57.983,
"l": 23.333
},
"oklch": {
"l": 0.30234,
"c": 0.11691,
"h": 301.6
},
"luminance": 0.02403
}Semantic roles & 50–950 ramp
primary
#3A195E
secondary
#6B943F
accent
#E14797
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D