#3C228F#3C228F
#3C228F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.167 H 285.5°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).
Color values
| HEX | #3C228F |
|---|---|
| RGB | rgb(60, 34, 143) |
| HSL | hsl(254, 62%, 35%) |
| HSV | hsv(254, 76%, 56%) |
| CMYK | cmyk(58%, 76.2%, 0%, 43.9%) |
| CIE-LAB | lab(23.96, 41.19, -55.79) |
| CIE-LCH | lch(23.96, 69.35, 306.44°) |
| OKLab | oklab(36.28% 0.0446 -0.1606) |
| OKLCH | oklch(36.28% 0.167 285.5) |
| XYZ | xyz(7.3919, 4.0875, 26.3807) |
| Luminance | 0.0409 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.89
Indigo Blue
#3A18B1
ΔE00 4.99
Indigo (survey)
#380282
ΔE00 5.30
Indigo
#4B0082
ΔE00 5.96
Cobalt Blue
#030AA7
ΔE00 6.21
Ultramarine
#2000B1
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C228F #758F22
analogous
#223F8F #3C228F #73228F
triadic
#3C228F #8F3C22 #228F3C
tetradic
#3C228F #8F223F #758F22 #228F73
square
#3C228F #8F223F #758F22 #228F73
split-complementary
#3C228F #8F7322 #3F8F22
monochromatic
#130A2C #27165E #3C228F #512EC0 #7455D7
Accessibility & contrast
On white
11.55
#3C228F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#3C228F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C228F
11.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C228F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C228F | 1.00 | 11.55 | 1.82 | 11.55 |
| #FFFFFF | 11.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#134057
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3c228f; /* rgb */ color: rgb(60, 34, 143); /* oklch */ color: oklch(36.3% 0.167 285.5);
Tailwind
colors: {
custom: {
50: '#7c60b1',
500: '#3c228f',
950: '#000000',
},
}SCSS
$custom: #3c228f; $custom-light: #7c60b1; $custom-dark: #000000;
JSON
{
"hex": "#3c228f",
"rgb": {
"r": 60,
"g": 34,
"b": 143
},
"hsl": {
"h": 254.312,
"s": 61.582,
"l": 34.706
},
"oklch": {
"l": 0.36276,
"c": 0.1667,
"h": 285.5
},
"luminance": 0.04088
}Semantic roles & 50–950 ramp
primary
#3C228F
secondary
#A2BA52
accent
#E543BE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980