#2F154F#2F154F
#2F154F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.101 H 300.2°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).
Color values
| HEX | #2F154F |
|---|---|
| RGB | rgb(47, 21, 79) |
| HSL | hsl(267, 58%, 20%) |
| HSV | hsv(267, 73%, 31%) |
| CMYK | cmyk(40.5%, 73.4%, 0%, 69%) |
| CIE-LAB | lab(13.86, 26.67, -30.78) |
| CIE-LCH | lch(13.86, 40.72, 310.91°) |
| OKLab | oklab(26.91% 0.051 -0.0876) |
| OKLCH | oklch(26.91% 0.101 300.2) |
| XYZ | xyz(2.8514, 1.7052, 7.5745) |
| Luminance | 0.0170 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.75
Dark Purple
#35063E
ΔE00 5.71
Dark Violet
#34013F
ΔE00 5.84
Midnight Purple
#280137
ΔE00 5.93
Deep Purple
#36013F
ΔE00 6.14
Very Dark Purple
#2A0134
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F154F #354F15
analogous
#15184F #2F154F #4C154F
triadic
#2F154F #4F2F15 #154F2F
tetradic
#2F154F #4F1518 #354F15 #154F4C
square
#2F154F #4F1518 #354F15 #154F4C
split-complementary
#2F154F #4F4C15 #184F15
monochromatic
#0E0618 #12081F #2F154F #4C227F #692FB0
Accessibility & contrast
On white
15.66
#2F154F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.34
#2F154F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F154F
15.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F154F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F154F | 1.00 | 15.66 | 1.34 | 15.66 |
| #FFFFFF | 15.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00234E
Tritanopia (blue-blind)
#282230
Achromatopsia (no color)
#232323
Design tokens & code
CSS
--color: #2f154f; /* rgb */ color: rgb(47, 21, 79); /* oklch */ color: oklch(26.9% 0.101 300.2);
Tailwind
colors: {
custom: {
50: '#6b5481',
500: '#2f154f',
950: '#000000',
},
}SCSS
$custom: #2f154f; $custom-light: #6b5481; $custom-dark: #000000;
JSON
{
"hex": "#2f154f",
"rgb": {
"r": 47,
"g": 21,
"b": 79
},
"hsl": {
"h": 266.897,
"s": 58,
"l": 19.608
},
"oklch": {
"l": 0.26906,
"c": 0.10141,
"h": 300.2
},
"luminance": 0.01705
}Semantic roles & 50–950 ramp
primary
#2F154F
secondary
#648739
accent
#E1479C
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#07030A
muted
#7A787C