#3A268F#3A268F
#3A268F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.163 H 283.7°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).
Color values
| HEX | #3A268F |
|---|---|
| RGB | rgb(58, 38, 143) |
| HSL | hsl(251, 58%, 35%) |
| HSV | hsv(251, 73%, 56%) |
| CMYK | cmyk(59.4%, 73.4%, 0%, 43.9%) |
| CIE-LAB | lab(24.54, 38.71, -54.84) |
| CIE-LCH | lch(24.54, 67.12, 305.21°) |
| OKLab | oklab(36.64% 0.0384 -0.1579) |
| OKLCH | oklch(36.64% 0.163 283.7) |
| XYZ | xyz(7.3944, 4.2685, 26.4155) |
| Luminance | 0.0427 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 5.08
Indigo Blue
#3A18B1
ΔE00 5.36
Indigo (survey)
#380282
ΔE00 6.23
Midnight Blue
#191970
ΔE00 6.50
Cobalt Blue
#030AA7
ΔE00 6.64
Darkslateblue
#483D8B
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A268F #7B8F26
analogous
#26468F #3A268F #6F268F
triadic
#3A268F #8F3A26 #268F3A
tetradic
#3A268F #8F2646 #7B8F26 #268F6F
square
#3A268F #8F2646 #7B8F26 #268F6F
split-complementary
#3A268F #8F6F26 #468F26
monochromatic
#130C2E #26195F #3A268F #4E33BF #735CD4
Accessibility & contrast
On white
11.33
#3A268F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#3A268F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A268F
11.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A268F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A268F | 1.00 | 11.33 | 1.85 | 11.33 |
| #FFFFFF | 11.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#084258
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3a268f; /* rgb */ color: rgb(58, 38, 143); /* oklch */ color: oklch(36.6% 0.163 283.7);
Tailwind
colors: {
custom: {
50: '#7a62b1',
500: '#3a268f',
950: '#000000',
},
}SCSS
$custom: #3a268f; $custom-light: #7a62b1; $custom-dark: #000000;
JSON
{
"hex": "#3a268f",
"rgb": {
"r": 58,
"g": 38,
"b": 143
},
"hsl": {
"h": 251.429,
"s": 58.011,
"l": 35.49
},
"oklch": {
"l": 0.3664,
"c": 0.16254,
"h": 283.7
},
"luminance": 0.04269
}Semantic roles & 50–950 ramp
primary
#3A268F
secondary
#A6B958
accent
#E147C4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980