#2F179F#2F179F
#2F179F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.197 H 277.5°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).
Color values
| HEX | #2F179F |
|---|---|
| RGB | rgb(47, 23, 159) |
| HSL | hsl(251, 75%, 36%) |
| HSV | hsv(251, 86%, 62%) |
| CMYK | cmyk(70.4%, 85.5%, 0%, 37.6%) |
| CIE-LAB | lab(22.72, 49.77, -67.72) |
| CIE-LCH | lch(22.72, 84.04, 306.31°) |
| OKLab | oklab(35.64% 0.0259 -0.1956) |
| OKLCH | oklch(35.64% 0.197 277.5) |
| XYZ | xyz(7.7347, 3.7196, 33.1045) |
| Luminance | 0.0372 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.81
Cobalt Blue
#030AA7
ΔE00 2.96
Ultramarine
#2000B1
ΔE00 3.17
Royal Blue (survey)
#0504AA
ΔE00 3.26
Royal
#0C1793
ΔE00 3.27
Indigo (survey)
#380282
ΔE00 5.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F179F #879F17
analogous
#17439F #2F179F #73179F
triadic
#2F179F #9F2F17 #179F2F
tetradic
#2F179F #9F1743 #879F17 #179F73
square
#2F179F #9F1743 #879F17 #179F73
split-complementary
#2F179F #9F7317 #439F17
monochromatic
#0F0834 #1F0F6A #2F179F #3F1FD4 #664BE5
Accessibility & contrast
On white
12.04
#2F179F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#2F179F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F179F
12.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F179F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F179F | 1.00 | 12.04 | 1.74 | 12.04 |
| #FFFFFF | 12.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003BA3
Deuteranopia (green-blind)
#00319D
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2f179f; /* rgb */ color: rgb(47, 23, 159); /* oklch */ color: oklch(35.6% 0.197 277.5);
Tailwind
colors: {
custom: {
50: '#7a5bbd',
500: '#2f179f',
950: '#000000',
},
}SCSS
$custom: #2f179f; $custom-light: #7a5bbd; $custom-dark: #000000;
JSON
{
"hex": "#2f179f",
"rgb": {
"r": 47,
"g": 23,
"b": 159
},
"hsl": {
"h": 250.588,
"s": 74.725,
"l": 35.686
},
"oklch": {
"l": 0.3564,
"c": 0.19732,
"h": 277.5
},
"luminance": 0.0372
}Semantic roles & 50–950 ramp
primary
#2F179F
secondary
#B1C74B
accent
#F136D0
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981