#3D228F#3D228F
#3D228F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.167 H 286.1°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).
Color values
| HEX | #3D228F |
|---|---|
| RGB | rgb(61, 34, 143) |
| HSL | hsl(255, 62%, 35%) |
| HSV | hsv(255, 76%, 56%) |
| CMYK | cmyk(57.3%, 76.2%, 0%, 43.9%) |
| CIE-LAB | lab(24.06, 41.33, -55.62) |
| CIE-LCH | lch(24.06, 69.29, 306.62°) |
| OKLab | oklab(36.37% 0.0461 -0.1601) |
| OKLCH | oklch(36.37% 0.167 286.1) |
| XYZ | xyz(7.4529, 4.1189, 26.3836) |
| Luminance | 0.0412 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 5.00
Royal
#0C1793
ΔE00 5.03
Indigo (survey)
#380282
ΔE00 5.29
Indigo
#4B0082
ΔE00 5.87
Cobalt Blue
#030AA7
ΔE00 6.30
Ultramarine
#2000B1
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D228F #748F22
analogous
#223E8F #3D228F #73228F
triadic
#3D228F #8F3D22 #228F3D
tetradic
#3D228F #8F223E #748F22 #228F73
square
#3D228F #8F223E #748F22 #228F73
split-complementary
#3D228F #8F7322 #3E8F22
monochromatic
#130A2C #28165E #3D228F #522EC0 #7555D7
Accessibility & contrast
On white
11.51
#3D228F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#3D228F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D228F
11.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D228F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D228F | 1.00 | 11.51 | 1.82 | 11.51 |
| #FFFFFF | 11.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#164057
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3d228f; /* rgb */ color: rgb(61, 34, 143); /* oklch */ color: oklch(36.4% 0.167 286.1);
Tailwind
colors: {
custom: {
50: '#7c60b1',
500: '#3d228f',
950: '#000000',
},
}SCSS
$custom: #3d228f; $custom-light: #7c60b1; $custom-dark: #000000;
JSON
{
"hex": "#3d228f",
"rgb": {
"r": 61,
"g": 34,
"b": 143
},
"hsl": {
"h": 254.862,
"s": 61.582,
"l": 34.706
},
"oklch": {
"l": 0.36373,
"c": 0.1666,
"h": 286.1
},
"luminance": 0.04119
}Semantic roles & 50–950 ramp
primary
#3D228F
secondary
#A1BA52
accent
#E543BD
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980