#2F206F#2F206F
#2F206F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.6% C 0.129 H 285.0°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).
Color values
| HEX | #2F206F |
|---|---|
| RGB | rgb(47, 32, 111) |
| HSL | hsl(251, 55%, 28%) |
| HSV | hsv(251, 71%, 44%) |
| CMYK | cmyk(57.7%, 71.2%, 0%, 56.5%) |
| CIE-LAB | lab(19.16, 30.09, -43.43) |
| CIE-LCH | lch(19.16, 52.84, 304.72°) |
| OKLab | oklab(31.61% 0.0334 -0.1249) |
| OKLCH | oklch(31.61% 0.129 285) |
| XYZ | xyz(4.5572, 2.7848, 15.3332) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.36
Dark Indigo
#1F0954
ΔE00 6.38
Indigo (survey)
#380282
ΔE00 6.56
Darkblue (survey)
#030764
ΔE00 6.80
Dark Royal Blue
#02066F
ΔE00 6.80
Royal
#0C1793
ΔE00 6.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F206F #606F20
analogous
#20396F #2F206F #56206F
triadic
#2F206F #6F2F20 #206F2F
tetradic
#2F206F #6F2039 #606F20 #206F56
square
#2F206F #6F2039 #606F20 #206F56
split-complementary
#2F206F #6F5620 #396F20
monochromatic
#0A0718 #1B123F #2F206F #432E9F #5B41C8
Accessibility & contrast
On white
13.49
#2F206F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2F206F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F206F
13.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F206F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F206F | 1.00 | 13.49 | 1.56 | 13.49 |
| #FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#123444
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2f206f; /* rgb */ color: rgb(47, 32, 111); /* oklch */ color: oklch(31.6% 0.129 285.0);
Tailwind
colors: {
custom: {
50: '#6f5d99',
500: '#2f206f',
950: '#000000',
},
}SCSS
$custom: #2f206f; $custom-light: #6f5d99; $custom-dark: #000000;
JSON
{
"hex": "#2f206f",
"rgb": {
"r": 47,
"g": 32,
"b": 111
},
"hsl": {
"h": 251.392,
"s": 55.245,
"l": 28.039
},
"oklch": {
"l": 0.31607,
"c": 0.12925,
"h": 285
},
"luminance": 0.02785
}Semantic roles & 50–950 ramp
primary
#2F206F
secondary
#92A348
accent
#DF49C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E