#2F206E#2F206E
#2F206E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.5% C 0.128 H 285.2°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).
Color values
| HEX | #2F206E |
|---|---|
| RGB | rgb(47, 32, 110) |
| HSL | hsl(252, 55%, 28%) |
| HSV | hsv(252, 71%, 43%) |
| CMYK | cmyk(57.3%, 70.9%, 0%, 56.9%) |
| CIE-LAB | lab(19.07, 29.76, -42.93) |
| CIE-LCH | lch(19.07, 52.24, 304.73°) |
| OKLab | oklab(31.51% 0.0336 -0.1234) |
| OKLCH | oklch(31.51% 0.128 285.2) |
| XYZ | xyz(4.5024, 2.7629, 15.0449) |
| Luminance | 0.0276 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.43
Dark Indigo
#1F0954
ΔE00 6.29
Indigo (survey)
#380282
ΔE00 6.68
Darkblue (survey)
#030764
ΔE00 6.82
Dark Royal Blue
#02066F
ΔE00 6.87
Royal
#0C1793
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F206E #5F6E20
analogous
#20386E #2F206E #56206E
triadic
#2F206E #6E2F20 #206E2F
tetradic
#2F206E #6E2038 #5F6E20 #206E56
square
#2F206E #6E2038 #5F6E20 #206E56
split-complementary
#2F206E #6E5620 #386E20
monochromatic
#0A0718 #1B123F #2F206E #432E9D #5B41C8
Accessibility & contrast
On white
13.53
#2F206E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2F206E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F206E
13.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F206E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F206E | 1.00 | 13.53 | 1.55 | 13.53 |
| #FFFFFF | 13.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#133444
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2f206e; /* rgb */ color: rgb(47, 32, 110); /* oklch */ color: oklch(31.5% 0.128 285.2);
Tailwind
colors: {
custom: {
50: '#6f5d98',
500: '#2f206e',
950: '#000000',
},
}SCSS
$custom: #2f206e; $custom-light: #6f5d98; $custom-dark: #000000;
JSON
{
"hex": "#2f206e",
"rgb": {
"r": 47,
"g": 32,
"b": 110
},
"hsl": {
"h": 251.538,
"s": 54.93,
"l": 27.843
},
"oklch": {
"l": 0.31512,
"c": 0.12788,
"h": 285.2
},
"luminance": 0.02763
}Semantic roles & 50–950 ramp
primary
#2F206E
secondary
#91A248
accent
#DE4AC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E