#2F115B#2F115B
#2F115B is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.5% C 0.122 H 295.6°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).
Color values
| HEX | #2F115B |
|---|---|
| RGB | rgb(47, 17, 91) |
| HSL | hsl(264, 69%, 21%) |
| HSV | hsv(264, 81%, 36%) |
| CMYK | cmyk(48.4%, 81.3%, 0%, 64.3%) |
| CIE-LAB | lab(14.18, 32.39, -38.40) |
| CIE-LCH | lch(14.18, 50.24, 310.15°) |
| OKLab | oklab(27.48% 0.0527 -0.11) |
| OKLCH | oklch(27.48% 0.122 295.6) |
| XYZ | xyz(3.2606, 1.7605, 10.0635) |
| Luminance | 0.0176 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.00
Midnight Blue
#191970
ΔE00 5.98
Darkblue (survey)
#030764
ΔE00 6.17
Royal Purple (survey)
#4B006E
ΔE00 6.18
Dark Blue
#00035B
ΔE00 6.35
Night Blue
#040348
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F115B #3D5B11
analogous
#11185B #2F115B #54115B
triadic
#2F115B #5B2F11 #115B2F
tetradic
#2F115B #5B1118 #3D5B11 #115B54
square
#2F115B #5B1118 #3D5B11 #115B54
split-complementary
#2F115B #5B5411 #185B11
monochromatic
#0D051A #140727 #2F115B #4A1B8F #6424C2
Accessibility & contrast
On white
15.53
#2F115B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.35
#2F115B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F115B
15.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F115B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F115B | 1.00 | 15.53 | 1.35 | 15.53 |
| #FFFFFF | 15.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#232535
Achromatopsia (no color)
#242424
Design tokens & code
CSS
--color: #2f115b; /* rgb */ color: rgb(47, 17, 91); /* oklch */ color: oklch(27.5% 0.122 295.6);
Tailwind
colors: {
custom: {
50: '#6d538a',
500: '#2f115b',
950: '#000000',
},
}SCSS
$custom: #2f115b; $custom-light: #6d538a; $custom-dark: #000000;
JSON
{
"hex": "#2f115b",
"rgb": {
"r": 47,
"g": 17,
"b": 91
},
"hsl": {
"h": 264.324,
"s": 68.519,
"l": 21.176
},
"oklch": {
"l": 0.27476,
"c": 0.122,
"h": 295.6
},
"luminance": 0.01761
}Semantic roles & 50–950 ramp
primary
#2F115B
secondary
#6D9434
accent
#EB3CA4
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D