#2F156F#2F156F
#2F156F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.142 H 287.6°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).
Color values
| HEX | #2F156F |
|---|---|
| RGB | rgb(47, 21, 111) |
| HSL | hsl(257, 68%, 26%) |
| HSV | hsv(257, 81%, 44%) |
| CMYK | cmyk(57.7%, 81.1%, 0%, 56.5%) |
| CIE-LAB | lab(16.93, 36.34, -47.09) |
| CIE-LCH | lch(16.93, 59.48, 307.66°) |
| OKLab | oklab(30.03% 0.0431 -0.1355) |
| OKLCH | oklch(30.03% 0.142 287.6) |
| XYZ | xyz(4.3088, 2.2881, 15.2505) |
| Luminance | 0.0229 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.51
Indigo (survey)
#380282
ΔE00 4.29
Dark Royal Blue
#02066F
ΔE00 5.02
Dark Indigo
#1F0954
ΔE00 5.05
Darkblue (survey)
#030764
ΔE00 5.24
Deep Blue
#040273
ΔE00 5.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F156F #556F15
analogous
#15286F #2F156F #5C156F
triadic
#2F156F #6F2F15 #156F2F
tetradic
#2F156F #6F1528 #556F15 #156F5C
square
#2F156F #6F1528 #556F15 #156F5C
split-complementary
#2F156F #6F5C15 #286F15
monochromatic
#0B051A #190B3C #2F156F #451FA2 #5B28D6
Accessibility & contrast
On white
14.41
#2F156F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#2F156F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F156F
14.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F156F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F156F | 1.00 | 14.41 | 1.46 | 14.41 |
| #FFFFFF | 14.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#132F41
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2f156f; /* rgb */ color: rgb(47, 21, 111); /* oklch */ color: oklch(30.0% 0.142 287.6);
Tailwind
colors: {
custom: {
50: '#705699',
500: '#2f156f',
950: '#000000',
},
}SCSS
$custom: #2f156f; $custom-light: #705699; $custom-dark: #000000;
JSON
{
"hex": "#2f156f",
"rgb": {
"r": 47,
"g": 21,
"b": 111
},
"hsl": {
"h": 257.333,
"s": 68.182,
"l": 25.882
},
"oklch": {
"l": 0.30028,
"c": 0.14219,
"h": 287.6
},
"luminance": 0.02288
}Semantic roles & 50–950 ramp
primary
#2F156F
secondary
#86A53A
accent
#EB3DB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E