#271F26#271F26
#271F26 is a dark, near-neutral purple. Relative luminance 0.016; OKLCH L 25.1% C 0.018 H 330.2°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).
Color values
| HEX | #271F26 |
|---|---|
| RGB | rgb(39, 31, 38) |
| HSL | hsl(308, 11%, 14%) |
| HSV | hsv(308, 21%, 15%) |
| CMYK | cmyk(0%, 20.5%, 2.6%, 84.7%) |
| CIE-LAB | lab(12.93, 5.45, -3.28) |
| CIE-LCH | lch(12.93, 6.36, 328.99°) |
| OKLab | oklab(25.15% 0.0153 -0.0087) |
| OKLCH | oklch(25.15% 0.018 330.2) |
| XYZ | xyz(1.6765, 1.5513, 2.0445) |
| Luminance | 0.0155 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Dark
#1B2431
ΔE00 9.53
Very Dark Brown
#1D0200
ΔE00 9.68
Dark Grey
#363737
ΔE00 10.49
Black
#000000
ΔE00 10.75
Onyx
#353839
ΔE00 11.30
Almost Black
#070D0D
ΔE00 11.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271F26 #1F2720
analogous
#241F27 #271F26 #271F22
triadic
#271F26 #26271F #1F2627
tetradic
#271F26 #27241F #1F2720 #1F2227
square
#271F26 #27241F #1F2720 #1F2227
split-complementary
#271F26 #22271F #1F2724
monochromatic
#110E11 #110E11 #271F26 #493A47 #6B5568
Accessibility & contrast
On white
16.03
#271F26 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.31
#271F26 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271F26
16.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271F26 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271F26 | 1.00 | 16.03 | 1.31 | 16.03 |
| #FFFFFF | 16.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F2126
Deuteranopia (green-blind)
#212226
Tritanopia (blue-blind)
#281F21
Achromatopsia (no color)
#212121
Design tokens & code
CSS
--color: #271f26; /* rgb */ color: rgb(39, 31, 38); /* oklch */ color: oklch(25.1% 0.018 330.2);
Tailwind
colors: {
custom: {
50: '#615a60',
500: '#271f26',
950: '#000000',
},
}SCSS
$custom: #271f26; $custom-light: #615a60; $custom-dark: #000000;
JSON
{
"hex": "#271f26",
"rgb": {
"r": 39,
"g": 31,
"b": 38
},
"hsl": {
"h": 307.5,
"s": 11.429,
"l": 13.725
},
"oklch": {
"l": 0.25149,
"c": 0.01757,
"h": 330.2
},
"luminance": 0.01551
}Semantic roles & 50–950 ramp
primary
#271F26
secondary
#4A574C
accent
#B47C73
background
#F5F5F5
surface
#E9E9E9
border
#C5C5C5
text
#050304
muted
#797879