#2F1269#2F1269
#2F1269 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.138 H 290.1°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1269 |
|---|---|
| RGB | rgb(47, 18, 105) |
| HSL | hsl(260, 71%, 24%) |
| HSV | hsv(260, 83%, 41%) |
| CMYK | cmyk(55.2%, 82.9%, 0%, 58.8%) |
| CIE-LAB | lab(15.78, 36.02, -45.06) |
| CIE-LCH | lch(15.78, 57.69, 308.64°) |
| OKLab | oklab(29.04% 0.0474 -0.1295) |
| OKLCH | oklch(29.04% 0.138 290.1) |
| XYZ | xyz(3.9377, 2.0567, 13.5514) |
| Luminance | 0.0206 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.11
Midnight Blue
#191970
ΔE00 4.17
Indigo (survey)
#380282
ΔE00 4.76
Darkblue (survey)
#030764
ΔE00 5.08
Dark Royal Blue
#02066F
ΔE00 5.16
Deep Blue
#040273
ΔE00 5.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1269 #4C6912
analogous
#122169 #2F1269 #5B1269
triadic
#2F1269 #692F12 #12692F
tetradic
#2F1269 #691221 #4C6912 #12695B
square
#2F1269 #691221 #4C6912 #12695B
split-complementary
#2F1269 #695B12 #216912
monochromatic
#0C041A #180935 #2F1269 #461B9D #5E24D1
Accessibility & contrast
On white
14.88
#2F1269 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#2F1269 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1269
14.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1269 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1269 | 1.00 | 14.88 | 1.41 | 14.88 |
| #FFFFFF | 14.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00296B
Deuteranopia (green-blind)
#002567
Tritanopia (blue-blind)
#192B3D
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #2f1269; /* rgb */ color: rgb(47, 18, 105); /* oklch */ color: oklch(29.0% 0.138 290.1);
Tailwind
colors: {
custom: {
50: '#6f5495',
500: '#2f1269',
950: '#000000',
},
}SCSS
$custom: #2f1269; $custom-light: #6f5495; $custom-dark: #000000;
JSON
{
"hex": "#2f1269",
"rgb": {
"r": 47,
"g": 18,
"b": 105
},
"hsl": {
"h": 260,
"s": 70.732,
"l": 24.118
},
"oklch": {
"l": 0.29035,
"c": 0.13794,
"h": 290.1
},
"luminance": 0.02057
}Semantic roles & 50–950 ramp
primary
#2F1269
secondary
#7DA136
accent
#ED3AB2
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030D
muted
#7B787E