#3F298C#3F298C
#3F298C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.155 H 286.4°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).
Color values
| HEX | #3F298C |
|---|---|
| RGB | rgb(63, 41, 140) |
| HSL | hsl(253, 55%, 35%) |
| HSV | hsv(253, 71%, 55%) |
| CMYK | cmyk(55%, 70.7%, 0%, 45.1%) |
| CIE-LAB | lab(25.37, 36.86, -51.60) |
| CIE-LCH | lch(25.37, 63.41, 305.54°) |
| OKLab | oklab(37.26% 0.0438 -0.1483) |
| OKLCH | oklch(37.26% 0.155 286.4) |
| XYZ | xyz(7.5750, 4.5357, 25.2822) |
| Luminance | 0.0454 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.79
Indigo Blue
#3A18B1
ΔE00 6.18
Royal
#0C1793
ΔE00 6.21
Blueberry
#464196
ΔE00 6.78
Indigo (survey)
#380282
ΔE00 6.80
Midnight Blue
#191970
ΔE00 6.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F298C #768C29
analogous
#29458C #3F298C #70298C
triadic
#3F298C #8C3F29 #298C3F
tetradic
#3F298C #8C2945 #768C29 #298C70
square
#3F298C #8C2945 #768C29 #298C70
split-complementary
#3F298C #8C7029 #458C29
monochromatic
#140D2D #2A1B5D #3F298C #5437BB #785FD0
Accessibility & contrast
On white
11.01
#3F298C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#3F298C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F298C
11.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F298C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F298C | 1.00 | 11.01 | 1.91 | 11.01 |
| #FFFFFF | 11.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#1F4357
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #3f298c; /* rgb */ color: rgb(63, 41, 140); /* oklch */ color: oklch(37.3% 0.155 286.4);
Tailwind
colors: {
custom: {
50: '#7c65ae',
500: '#3f298c',
950: '#000000',
},
}SCSS
$custom: #3f298c; $custom-light: #7c65ae; $custom-dark: #000000;
JSON
{
"hex": "#3f298c",
"rgb": {
"r": 63,
"g": 41,
"b": 140
},
"hsl": {
"h": 253.333,
"s": 54.696,
"l": 35.49
},
"oklch": {
"l": 0.37264,
"c": 0.15462,
"h": 286.4
},
"luminance": 0.04536
}Semantic roles & 50–950 ramp
primary
#3F298C
secondary
#A2B65B
accent
#DE4ABD
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0A0610
muted
#7C7A7F