#3A239F#3A239F
#3A239F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.185 H 281.4°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).
Color values
| HEX | #3A239F |
|---|---|
| RGB | rgb(58, 35, 159) |
| HSL | hsl(251, 64%, 38%) |
| HSV | hsv(251, 78%, 62%) |
| CMYK | cmyk(63.5%, 78%, 0%, 37.6%) |
| CIE-LAB | lab(25.58, 45.28, -62.97) |
| CIE-LCH | lch(25.58, 77.56, 305.72°) |
| OKLab | oklab(37.85% 0.0365 -0.1817) |
| OKLCH | oklch(37.85% 0.185 281.4) |
| XYZ | xyz(8.6020, 4.6042, 33.2296) |
| Luminance | 0.0461 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.94
Royal
#0C1793
ΔE00 4.87
Ultramarine
#2000B1
ΔE00 5.20
Cobalt Blue
#030AA7
ΔE00 5.24
Royal Blue (survey)
#0504AA
ΔE00 5.56
True Blue
#010FCC
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A239F #889F23
analogous
#234A9F #3A239F #78239F
triadic
#3A239F #9F3A23 #239F3A
tetradic
#3A239F #9F234A #889F23 #239F78
square
#3A239F #9F234A #889F23 #239F78
split-complementary
#3A239F #9F7823 #4A9F23
monochromatic
#150D3B #28186D #3A239F #4C2ED1 #7760DC
Accessibility & contrast
On white
10.93
#3A239F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#3A239F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A239F
10.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A239F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A239F | 1.00 | 10.93 | 1.92 | 10.93 |
| #FFFFFF | 10.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00389D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #3a239f; /* rgb */ color: rgb(58, 35, 159); /* oklch */ color: oklch(37.9% 0.185 281.4);
Tailwind
colors: {
custom: {
50: '#7e62bd',
500: '#3a239f',
950: '#000000',
},
}SCSS
$custom: #3a239f; $custom-light: #7e62bd; $custom-dark: #000000;
JSON
{
"hex": "#3a239f",
"rgb": {
"r": 58,
"g": 35,
"b": 159
},
"hsl": {
"h": 251.129,
"s": 63.918,
"l": 38.039
},
"oklch": {
"l": 0.37854,
"c": 0.18532,
"h": 281.4
},
"luminance": 0.04605
}Semantic roles & 50–950 ramp
primary
#3A239F
secondary
#AEC15D
accent
#E741C8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981