#2F148F#2F148F
#2F148F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.181 H 280.4°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).
Color values
| HEX | #2F148F |
|---|---|
| RGB | rgb(47, 20, 143) |
| HSL | hsl(253, 75%, 32%) |
| HSV | hsv(253, 86%, 56%) |
| CMYK | cmyk(67.1%, 86%, 0%, 43.9%) |
| CIE-LAB | lab(20.39, 46.34, -61.72) |
| CIE-LCH | lch(20.39, 77.18, 306.90°) |
| OKLab | oklab(33.49% 0.0326 -0.1781) |
| OKLCH | oklch(33.49% 0.181 280.4) |
| XYZ | xyz(6.3788, 3.0873, 26.2410) |
| Luminance | 0.0309 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.90
Indigo (survey)
#380282
ΔE00 3.33
Cobalt Blue
#030AA7
ΔE00 3.99
Darkblue
#00008B
ΔE00 4.25
Royal Blue (survey)
#0504AA
ΔE00 4.33
Ultramarine
#2000B1
ΔE00 4.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F148F #748F14
analogous
#14368F #2F148F #6D148F
triadic
#2F148F #8F2F14 #148F2F
tetradic
#2F148F #8F1436 #748F14 #148F6D
square
#2F148F #8F1436 #748F14 #148F6D
split-complementary
#2F148F #8F6D14 #368F14
monochromatic
#0C0524 #1D0C59 #2F148F #411CC5 #5F3AE3
Accessibility & contrast
On white
12.98
#2F148F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2F148F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F148F
12.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F148F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F148F | 1.00 | 12.98 | 1.62 | 12.98 |
| #FFFFFF | 12.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002C8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2f148f; /* rgb */ color: rgb(47, 20, 143); /* oklch */ color: oklch(33.5% 0.181 280.4);
Tailwind
colors: {
custom: {
50: '#7758b1',
500: '#2f148f',
950: '#000000',
},
}SCSS
$custom: #2f148f; $custom-light: #7758b1; $custom-dark: #000000;
JSON
{
"hex": "#2f148f",
"rgb": {
"r": 47,
"g": 20,
"b": 143
},
"hsl": {
"h": 253.171,
"s": 75.46,
"l": 31.961
},
"oklch": {
"l": 0.33487,
"c": 0.18109,
"h": 280.4
},
"luminance": 0.03088
}Semantic roles & 50–950 ramp
primary
#2F148F
secondary
#A5C33C
accent
#F236C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980