#2F155F#2F155F
#2F155F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.4% C 0.122 H 293.0°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).
Color values
| HEX | #2F155F |
|---|---|
| RGB | rgb(47, 21, 95) |
| HSL | hsl(261, 64%, 23%) |
| HSV | hsv(261, 78%, 37%) |
| CMYK | cmyk(50.5%, 77.9%, 0%, 62.7%) |
| CIE-LAB | lab(15.31, 31.47, -39.22) |
| CIE-LCH | lch(15.31, 50.28, 308.74°) |
| OKLab | oklab(28.4% 0.0477 -0.1124) |
| OKLCH | oklch(28.4% 0.122 293) |
| XYZ | xyz(3.5054, 1.9668, 11.0192) |
| Luminance | 0.0197 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.47
Midnight Blue
#191970
ΔE00 5.14
Darkblue (survey)
#030764
ΔE00 6.04
Royal Purple (survey)
#4B006E
ΔE00 6.44
Dark Blue
#00035B
ΔE00 6.47
Dark Royal Blue
#02066F
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F155F #455F15
analogous
#15205F #2F155F #54155F
triadic
#2F155F #5F2F15 #155F2F
tetradic
#2F155F #5F1520 #455F15 #155F54
square
#2F155F #5F1520 #455F15 #155F54
split-complementary
#2F155F #5F5415 #205F15
monochromatic
#0C0619 #160A2D #2F155F #482091 #612BC3
Accessibility & contrast
On white
15.07
#2F155F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.39
#2F155F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F155F
15.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F155F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F155F | 1.00 | 15.07 | 1.39 | 15.07 |
| #FFFFFF | 15.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#202838
Achromatopsia (no color)
#262626
Design tokens & code
CSS
--color: #2f155f; /* rgb */ color: rgb(47, 21, 95); /* oklch */ color: oklch(28.4% 0.122 293.0);
Tailwind
colors: {
custom: {
50: '#6d558d',
500: '#2f155f',
950: '#000000',
},
}SCSS
$custom: #2f155f; $custom-light: #6d558d; $custom-dark: #000000;
JSON
{
"hex": "#2f155f",
"rgb": {
"r": 47,
"g": 21,
"b": 95
},
"hsl": {
"h": 261.081,
"s": 63.793,
"l": 22.745
},
"oklch": {
"l": 0.28396,
"c": 0.12215,
"h": 293
},
"luminance": 0.01967
}Semantic roles & 50–950 ramp
primary
#2F155F
secondary
#76963A
accent
#E741AD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D