#2F149F#2F149F
#2F149F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.4% C 0.199 H 277.8°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2F149F |
|---|---|
| RGB | rgb(47, 20, 159) |
| HSL | hsl(252, 78%, 35%) |
| HSV | hsv(252, 87%, 62%) |
| CMYK | cmyk(70.4%, 87.4%, 0%, 37.6%) |
| CIE-LAB | lab(22.33, 50.94, -68.38) |
| CIE-LCH | lch(22.33, 85.27, 306.69°) |
| OKLab | oklab(35.37% 0.0269 -0.1975) |
| OKLCH | oklch(35.37% 0.199 277.8) |
| XYZ | xyz(7.6784, 3.6072, 33.0858) |
| Luminance | 0.0361 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Cobalt Blue
#030AA7
ΔE00 2.75
Ultramarine
#2000B1
ΔE00 2.89
Indigo Blue
#3A18B1
ΔE00 2.91
Royal Blue (survey)
#0504AA
ΔE00 2.99
Royal
#0C1793
ΔE00 3.32
Indigo (survey)
#380282
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F149F #849F14
analogous
#143E9F #2F149F #75149F
triadic
#2F149F #9F2F14 #149F2F
tetradic
#2F149F #9F143E #849F14 #149F75
square
#2F149F #9F143E #849F14 #149F75
split-complementary
#2F149F #9F7514 #3E9F14
monochromatic
#0F0632 #1F0D69 #2F149F #3F1BD5 #6546E8
Accessibility & contrast
On white
12.20
#2F149F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#2F149F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F149F
12.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F149F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F149F | 1.00 | 12.20 | 1.72 | 12.20 |
| #FFFFFF | 12.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003BA3
Deuteranopia (green-blind)
#00309D
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2f149f; /* rgb */ color: rgb(47, 20, 159); /* oklch */ color: oklch(35.4% 0.199 277.8);
Tailwind
colors: {
custom: {
50: '#7a59bd',
500: '#2f149f',
950: '#000000',
},
}SCSS
$custom: #2f149f; $custom-light: #7a59bd; $custom-dark: #000000;
JSON
{
"hex": "#2f149f",
"rgb": {
"r": 47,
"g": 20,
"b": 159
},
"hsl": {
"h": 251.655,
"s": 77.654,
"l": 35.098
},
"oklch": {
"l": 0.3537,
"c": 0.19928,
"h": 277.8
},
"luminance": 0.03608
}Semantic roles & 50–950 ramp
primary
#2F149F
secondary
#AFC846
accent
#F434CF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981