#2F158F#2F158F
#2F158F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.6% C 0.180 H 280.3°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).
Color values
| HEX | #2F158F |
|---|---|
| RGB | rgb(47, 21, 143) |
| HSL | hsl(253, 74%, 32%) |
| HSV | hsv(253, 85%, 56%) |
| CMYK | cmyk(67.1%, 85.3%, 0%, 43.9%) |
| CIE-LAB | lab(20.53, 45.92, -61.49) |
| CIE-LCH | lch(20.53, 76.74, 306.75°) |
| OKLab | oklab(33.58% 0.0322 -0.1775) |
| OKLCH | oklch(33.58% 0.18 280.3) |
| XYZ | xyz(6.3968, 3.1233, 26.2470) |
| Luminance | 0.0312 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.86
Indigo (survey)
#380282
ΔE00 3.46
Cobalt Blue
#030AA7
ΔE00 4.03
Darkblue
#00008B
ΔE00 4.36
Royal Blue (survey)
#0504AA
ΔE00 4.39
Ultramarine
#2000B1
ΔE00 4.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F158F #758F15
analogous
#15388F #2F158F #6C158F
triadic
#2F158F #8F2F15 #158F2F
tetradic
#2F158F #8F1538 #758F15 #158F6C
square
#2F158F #8F1538 #758F15 #158F6C
split-complementary
#2F158F #8F6C15 #388F15
monochromatic
#0C0524 #1D0D5A #2F158F #411DC4 #5F3CE2
Accessibility & contrast
On white
12.92
#2F158F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2F158F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F158F
12.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F158F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F158F | 1.00 | 12.92 | 1.62 | 12.92 |
| #FFFFFF | 12.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2f158f; /* rgb */ color: rgb(47, 21, 143); /* oklch */ color: oklch(33.6% 0.180 280.3);
Tailwind
colors: {
custom: {
50: '#7758b1',
500: '#2f158f',
950: '#000000',
},
}SCSS
$custom: #2f158f; $custom-light: #7758b1; $custom-dark: #000000;
JSON
{
"hex": "#2f158f",
"rgb": {
"r": 47,
"g": 21,
"b": 143
},
"hsl": {
"h": 252.787,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.33584,
"c": 0.18037,
"h": 280.3
},
"luminance": 0.03124
}Semantic roles & 50–950 ramp
primary
#2F158F
secondary
#A6C23E
accent
#F137C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980