#2F168F#2F168F
#2F168F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.180 H 280.2°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).
Color values
| HEX | #2F168F |
|---|---|
| RGB | rgb(47, 22, 143) |
| HSL | hsl(252, 73%, 32%) |
| HSV | hsv(252, 85%, 56%) |
| CMYK | cmyk(67.1%, 84.6%, 0%, 43.9%) |
| CIE-LAB | lab(20.68, 45.49, -61.25) |
| CIE-LCH | lch(20.68, 76.29, 306.60°) |
| OKLab | oklab(33.68% 0.0317 -0.1768) |
| OKLCH | oklch(33.68% 0.18 280.2) |
| XYZ | xyz(6.4155, 3.1608, 26.2533) |
| Luminance | 0.0316 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.83
Indigo (survey)
#380282
ΔE00 3.59
Cobalt Blue
#030AA7
ΔE00 4.08
Royal Blue (survey)
#0504AA
ΔE00 4.45
Darkblue
#00008B
ΔE00 4.47
Ultramarine
#2000B1
ΔE00 4.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F168F #768F16
analogous
#16398F #2F168F #6C168F
triadic
#2F168F #8F2F16 #168F2F
tetradic
#2F168F #8F1639 #768F16 #168F6C
square
#2F168F #8F1639 #768F16 #168F6C
split-complementary
#2F168F #8F6C16 #398F16
monochromatic
#0C0625 #1E0E5A #2F168F #401EC4 #603EE1
Accessibility & contrast
On white
12.87
#2F168F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2F168F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F168F
12.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F168F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F168F | 1.00 | 12.87 | 1.63 | 12.87 |
| #FFFFFF | 12.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2f168f; /* rgb */ color: rgb(47, 22, 143); /* oklch */ color: oklch(33.7% 0.180 280.2);
Tailwind
colors: {
custom: {
50: '#7659b1',
500: '#2f168f',
950: '#000000',
},
}SCSS
$custom: #2f168f; $custom-light: #7659b1; $custom-dark: #000000;
JSON
{
"hex": "#2f168f",
"rgb": {
"r": 47,
"g": 22,
"b": 143
},
"hsl": {
"h": 252.397,
"s": 73.333,
"l": 32.353
},
"oklch": {
"l": 0.33684,
"c": 0.17961,
"h": 280.2
},
"luminance": 0.03161
}Semantic roles & 50–950 ramp
primary
#2F168F
secondary
#A7C13F
accent
#F038CA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980