#3F229C#3F229C
#3F229C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.182 H 284.5°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).
Color values
| HEX | #3F229C |
|---|---|
| RGB | rgb(63, 34, 156) |
| HSL | hsl(254, 64%, 37%) |
| HSV | hsv(254, 78%, 61%) |
| CMYK | cmyk(59.6%, 78.2%, 0%, 38.8%) |
| CIE-LAB | lab(25.57, 45.49, -61.14) |
| CIE-LCH | lch(25.57, 76.21, 306.65°) |
| OKLab | oklab(37.87% 0.0456 -0.1762) |
| OKLCH | oklch(37.87% 0.182 284.5) |
| XYZ | xyz(8.6208, 4.6006, 31.8798) |
| Luminance | 0.0460 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.22
Royal
#0C1793
ΔE00 5.25
Ultramarine
#2000B1
ΔE00 5.49
Cobalt Blue
#030AA7
ΔE00 5.64
Royal Blue (survey)
#0504AA
ΔE00 5.92
Indigo (survey)
#380282
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F229C #7F9C22
analogous
#22429C #3F229C #7C229C
triadic
#3F229C #9C3F22 #229C3F
tetradic
#3F229C #9C2242 #7F9C22 #229C7C
square
#3F229C #9C2242 #7F9C22 #229C7C
split-complementary
#3F229C #9C7C22 #429C22
monochromatic
#160C38 #2B176A #3F229C #532DCE #7B5DDC
Accessibility & contrast
On white
10.94
#3F229C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#3F229C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F229C
10.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F229C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F229C | 1.00 | 10.94 | 1.92 | 10.94 |
| #FFFFFF | 10.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#00399A
Tritanopia (blue-blind)
#06455E
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #3f229c; /* rgb */ color: rgb(63, 34, 156); /* oklch */ color: oklch(37.9% 0.182 284.5);
Tailwind
colors: {
custom: {
50: '#8061ba',
500: '#3f229c',
950: '#000000',
},
}SCSS
$custom: #3f229c; $custom-light: #8061ba; $custom-dark: #000000;
JSON
{
"hex": "#3f229c",
"rgb": {
"r": 63,
"g": 34,
"b": 156
},
"hsl": {
"h": 254.262,
"s": 64.211,
"l": 37.255
},
"oklch": {
"l": 0.3787,
"c": 0.18199,
"h": 284.5
},
"luminance": 0.04601
}Semantic roles & 50–950 ramp
primary
#3F229C
secondary
#A8C05A
accent
#E741C0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981