#3F238F#3F238F
#3F238F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.165 H 287.0°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).
Color values
| HEX | #3F238F |
|---|---|
| RGB | rgb(63, 35, 143) |
| HSL | hsl(256, 61%, 35%) |
| HSV | hsv(256, 76%, 56%) |
| CMYK | cmyk(55.9%, 75.5%, 0%, 43.9%) |
| CIE-LAB | lab(24.45, 41.10, -54.96) |
| CIE-LCH | lch(24.45, 68.63, 306.79°) |
| OKLab | oklab(36.7% 0.0484 -0.1581) |
| OKLCH | oklch(36.7% 0.165 287) |
| XYZ | xyz(7.6074, 4.2416, 26.3991) |
| Luminance | 0.0424 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 5.10
Royal
#0C1793
ΔE00 5.38
Indigo (survey)
#380282
ΔE00 5.49
Indigo
#4B0082
ΔE00 5.89
Cobalt Blue
#030AA7
ΔE00 6.61
Ultramarine
#2000B1
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F238F #738F23
analogous
#233D8F #3F238F #75238F
triadic
#3F238F #8F3F23 #238F3F
tetradic
#3F238F #8F233D #738F23 #238F75
square
#3F238F #8F233D #738F23 #238F75
split-complementary
#3F238F #8F7523 #3D8F23
monochromatic
#140B2D #29175E #3F238F #552FC0 #7857D6
Accessibility & contrast
On white
11.36
#3F238F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#3F238F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F238F
11.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F238F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F238F | 1.00 | 11.36 | 1.85 | 11.36 |
| #FFFFFF | 11.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#1D4157
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3f238f; /* rgb */ color: rgb(63, 35, 143); /* oklch */ color: oklch(36.7% 0.165 287.0);
Tailwind
colors: {
custom: {
50: '#7d61b1',
500: '#3f238f',
950: '#000000',
},
}SCSS
$custom: #3f238f; $custom-light: #7d61b1; $custom-dark: #000000;
JSON
{
"hex": "#3f238f",
"rgb": {
"r": 63,
"g": 35,
"b": 143
},
"hsl": {
"h": 255.556,
"s": 60.674,
"l": 34.902
},
"oklch": {
"l": 0.367,
"c": 0.16536,
"h": 287
},
"luminance": 0.04242
}Semantic roles & 50–950 ramp
primary
#3F238F
secondary
#9FBA54
accent
#E444BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980