#2F176F#2F176F
#2F176F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.140 H 287.2°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).
Color values
| HEX | #2F176F |
|---|---|
| RGB | rgb(47, 23, 111) |
| HSL | hsl(256, 66%, 26%) |
| HSV | hsv(256, 79%, 44%) |
| CMYK | cmyk(57.7%, 79.3%, 0%, 56.5%) |
| CIE-LAB | lab(17.29, 35.30, -46.49) |
| CIE-LCH | lch(17.29, 58.37, 307.21°) |
| OKLab | oklab(30.28% 0.0415 -0.1338) |
| OKLCH | oklch(30.28% 0.14 287.2) |
| XYZ | xyz(4.3471, 2.3646, 15.2632) |
| Luminance | 0.0237 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.33
Indigo (survey)
#380282
ΔE00 4.62
Dark Indigo
#1F0954
ΔE00 5.19
Dark Royal Blue
#02066F
ΔE00 5.25
Darkblue (survey)
#030764
ΔE00 5.43
Deep Blue
#040273
ΔE00 5.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F176F #576F17
analogous
#172B6F #2F176F #5B176F
triadic
#2F176F #6F2F17 #176F2F
tetradic
#2F176F #6F172B #576F17 #176F5B
square
#2F176F #6F172B #576F17 #176F5B
split-complementary
#2F176F #6F5B17 #2B6F17
monochromatic
#0B0519 #1A0C3C #2F176F #4422A2 #5A2DD3
Accessibility & contrast
On white
14.26
#2F176F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#2F176F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F176F
14.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F176F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F176F | 1.00 | 14.26 | 1.47 | 14.26 |
| #FFFFFF | 14.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D72
Deuteranopia (green-blind)
#00286D
Tritanopia (blue-blind)
#133042
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2f176f; /* rgb */ color: rgb(47, 23, 111); /* oklch */ color: oklch(30.3% 0.140 287.2);
Tailwind
colors: {
custom: {
50: '#705799',
500: '#2f176f',
950: '#000000',
},
}SCSS
$custom: #2f176f; $custom-light: #705799; $custom-dark: #000000;
JSON
{
"hex": "#2f176f",
"rgb": {
"r": 47,
"g": 23,
"b": 111
},
"hsl": {
"h": 256.364,
"s": 65.672,
"l": 26.275
},
"oklch": {
"l": 0.30282,
"c": 0.14007,
"h": 287.2
},
"luminance": 0.02365
}Semantic roles & 50–950 ramp
primary
#2F176F
secondary
#88A53D
accent
#E93FBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E