#3F229B#3F229B
#3F229B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.181 H 284.7°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).
Color values
| HEX | #3F229B |
|---|---|
| RGB | rgb(63, 34, 155) |
| HSL | hsl(254, 64%, 37%) |
| HSV | hsv(254, 78%, 61%) |
| CMYK | cmyk(59.4%, 78.1%, 0%, 39.2%) |
| CIE-LAB | lab(25.46, 45.20, -60.70) |
| CIE-LCH | lch(25.46, 75.68, 306.67°) |
| OKLab | oklab(37.77% 0.0459 -0.1749) |
| OKLCH | oklch(37.77% 0.181 284.7) |
| XYZ | xyz(8.5365, 4.5668, 31.4357) |
| Luminance | 0.0457 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.35
Royal
#0C1793
ΔE00 5.22
Ultramarine
#2000B1
ΔE00 5.56
Cobalt Blue
#030AA7
ΔE00 5.68
Royal Blue (survey)
#0504AA
ΔE00 5.96
Indigo (survey)
#380282
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F229B #7E9B22
analogous
#22429B #3F229B #7C229B
triadic
#3F229B #9B3F22 #229B3F
tetradic
#3F229B #9B2242 #7E9B22 #229B7C
square
#3F229B #9B2242 #7E9B22 #229B7C
split-complementary
#3F229B #9B7C22 #429B22
monochromatic
#160C37 #2B1769 #3F229B #532DCD #7B5CDB
Accessibility & contrast
On white
10.98
#3F229B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#3F229B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F229B
10.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F229B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F229B | 1.00 | 10.98 | 1.91 | 10.98 |
| #FFFFFF | 10.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#09455E
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #3f229b; /* rgb */ color: rgb(63, 34, 155); /* oklch */ color: oklch(37.8% 0.181 284.7);
Tailwind
colors: {
custom: {
50: '#8061ba',
500: '#3f229b',
950: '#000000',
},
}SCSS
$custom: #3f229b; $custom-light: #8061ba; $custom-dark: #000000;
JSON
{
"hex": "#3f229b",
"rgb": {
"r": 63,
"g": 34,
"b": 155
},
"hsl": {
"h": 254.38,
"s": 64.021,
"l": 37.059
},
"oklch": {
"l": 0.37768,
"c": 0.1808,
"h": 284.7
},
"luminance": 0.04567
}Semantic roles & 50–950 ramp
primary
#3F229B
secondary
#A7C059
accent
#E741BF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981