#3F238B#3F238B
#3F238B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.160 H 287.9°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).
Color values
| HEX | #3F238B |
|---|---|
| RGB | rgb(63, 35, 139) |
| HSL | hsl(256, 60%, 34%) |
| HSV | hsv(256, 75%, 55%) |
| CMYK | cmyk(54.7%, 74.8%, 0%, 45.5%) |
| CIE-LAB | lab(24.07, 39.90, -53.10) |
| CIE-LCH | lch(24.07, 66.42, 306.92°) |
| OKLab | oklab(36.31% 0.0494 -0.1527) |
| OKLCH | oklch(36.31% 0.16 287.9) |
| XYZ | xyz(7.3098, 4.1225, 24.8317) |
| Luminance | 0.0412 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.36
Royal
#0C1793
ΔE00 5.58
Indigo Blue
#3A18B1
ΔE00 5.71
Indigo
#4B0082
ΔE00 5.73
Midnight Blue
#191970
ΔE00 6.54
Cobalt Blue
#030AA7
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F238B #6F8B23
analogous
#233B8B #3F238B #73238B
triadic
#3F238B #8B3F23 #238B3F
tetradic
#3F238B #8B233B #6F8B23 #238B73
square
#3F238B #8B233B #6F8B23 #238B73
split-complementary
#3F238B #8B7323 #3B8B23
monochromatic
#130A29 #29175A #3F238B #552FBC #7754D4
Accessibility & contrast
On white
11.51
#3F238B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#3F238B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F238B
11.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F238B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F238B | 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)
#003C8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#213F55
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3f238b; /* rgb */ color: rgb(63, 35, 139); /* oklch */ color: oklch(36.3% 0.160 287.9);
Tailwind
colors: {
custom: {
50: '#7d61ae',
500: '#3f238b',
950: '#000000',
},
}SCSS
$custom: #3f238b; $custom-light: #7d61ae; $custom-dark: #000000;
JSON
{
"hex": "#3f238b",
"rgb": {
"r": 63,
"g": 35,
"b": 139
},
"hsl": {
"h": 256.154,
"s": 59.77,
"l": 34.118
},
"oklch": {
"l": 0.36313,
"c": 0.16046,
"h": 287.9
},
"luminance": 0.04123
}Semantic roles & 50–950 ramp
primary
#3F238B
secondary
#9CB852
accent
#E345B8
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F