#2F108D#2F108D
#2F108D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.9% C 0.182 H 281.1°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).
Color values
| HEX | #2F108D |
|---|---|
| RGB | rgb(47, 16, 141) |
| HSL | hsl(255, 80%, 31%) |
| HSV | hsv(255, 89%, 55%) |
| CMYK | cmyk(66.7%, 88.7%, 0%, 44.7%) |
| CIE-LAB | lab(19.63, 47.31, -61.74) |
| CIE-LCH | lch(19.63, 77.78, 307.46°) |
| OKLab | oklab(32.9% 0.0349 -0.1781) |
| OKLCH | oklch(32.9% 0.182 281.1) |
| XYZ | xyz(6.1638, 2.8975, 25.4286) |
| Luminance | 0.0290 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.73
Royal
#0C1793
ΔE00 3.20
Darkblue
#00008B
ΔE00 3.85
Cobalt Blue
#030AA7
ΔE00 4.12
Royal Blue (survey)
#0504AA
ΔE00 4.40
Navy
#000080
ΔE00 4.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F108D #6E8D10
analogous
#102F8D #2F108D #6D108D
triadic
#2F108D #8D2F10 #108D2F
tetradic
#2F108D #8D102F #6E8D10 #108D6D
square
#2F108D #8D102F #6E8D10 #108D6D
split-complementary
#2F108D #8D6D10 #2F8D10
monochromatic
#0A041F #1D0A56 #2F108D #4116C4 #5D30E7
Accessibility & contrast
On white
13.29
#2F108D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2F108D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F108D
13.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F108D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F108D | 1.00 | 13.29 | 1.58 | 13.29 |
| #FFFFFF | 13.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#002B8B
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2f108d; /* rgb */ color: rgb(47, 16, 141); /* oklch */ color: oklch(32.9% 0.182 281.1);
Tailwind
colors: {
custom: {
50: '#7656b0',
500: '#2f108d',
950: '#000000',
},
}SCSS
$custom: #2f108d; $custom-light: #7656b0; $custom-dark: #000000;
JSON
{
"hex": "#2f108d",
"rgb": {
"r": 47,
"g": 16,
"b": 141
},
"hsl": {
"h": 254.88,
"s": 79.618,
"l": 30.784
},
"oklch": {
"l": 0.32897,
"c": 0.18151,
"h": 281.1
},
"luminance": 0.02898
}Semantic roles & 50–950 ramp
primary
#2F108D
secondary
#9FC237
accent
#F632C5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880