#2F1968#2F1968
#2F1968 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.129 H 288.8°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1968 |
|---|---|
| RGB | rgb(47, 25, 104) |
| HSL | hsl(257, 61%, 25%) |
| HSV | hsv(257, 76%, 41%) |
| CMYK | cmyk(54.8%, 76%, 0%, 59.2%) |
| CIE-LAB | lab(16.98, 32.01, -42.43) |
| CIE-LCH | lch(16.98, 53.15, 307.03°) |
| OKLab | oklab(29.85% 0.0416 -0.1219) |
| OKLCH | oklch(29.85% 0.129 288.8) |
| XYZ | xyz(4.0179, 2.2989, 13.3260) |
| Luminance | 0.0230 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.77
Dark Indigo
#1F0954
ΔE00 4.60
Darkblue (survey)
#030764
ΔE00 5.82
Indigo (survey)
#380282
ΔE00 5.95
Dark Royal Blue
#02066F
ΔE00 6.06
Deep Blue
#040273
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1968 #526819
analogous
#192A68 #2F1968 #561968
triadic
#2F1968 #682F19 #19682F
tetradic
#2F1968 #68192A #526819 #196856
square
#2F1968 #68192A #526819 #196856
split-complementary
#2F1968 #685619 #2A6819
monochromatic
#0B0619 #190D37 #2F1968 #452599 #5C31CB
Accessibility & contrast
On white
14.39
#2F1968 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#2F1968 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1968
14.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1968 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1968 | 1.00 | 14.39 | 1.46 | 14.39 |
| #FFFFFF | 14.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#1A2E3E
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2f1968; /* rgb */ color: rgb(47, 25, 104); /* oklch */ color: oklch(29.8% 0.129 288.8);
Tailwind
colors: {
custom: {
50: '#6e5894',
500: '#2f1968',
950: '#000000',
},
}SCSS
$custom: #2f1968; $custom-light: #6e5894; $custom-dark: #000000;
JSON
{
"hex": "#2f1968",
"rgb": {
"r": 47,
"g": 25,
"b": 104
},
"hsl": {
"h": 256.709,
"s": 61.24,
"l": 25.294
},
"oklch": {
"l": 0.29848,
"c": 0.12881,
"h": 288.8
},
"luminance": 0.02299
}Semantic roles & 50–950 ramp
primary
#2F1968
secondary
#839E3F
accent
#E443B8
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E