#271E2E#271E2E

#271E2E is a dark, muted violet. Relative luminance 0.016; OKLCH L 25.3% C 0.032 H 309.8°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#271E2E
RGBrgb(39, 30, 46)
HSLhsl(274, 21%, 15%)
HSVhsv(274, 35%, 18%)
CMYKcmyk(15.2%, 34.8%, 0%, 82%)
CIE-LABlab(12.97, 8.27, -9.02)
CIE-LCHlch(12.97, 12.24, 312.50°)
OKLaboklab(25.3% 0.0206 -0.0247)
OKLCHoklch(25.3% 0.032 309.8)
XYZxyz(1.7940, 1.5572, 2.7903)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E2E #252E1E
analogous
#1F1E2E #271E2E #2E1E2D
triadic
#271E2E #2E271E #1E2E27
tetradic
#271E2E #2E1F1E #252E1E #1E2D2E
square
#271E2E #2E1F1E #252E1E #1E2D2E
split-complementary
#271E2E #2D2E1E #1E2E1F
monochromatic
#100C13 #100C13 #271E2E #463653 #664E78

Accessibility & contrast

On white

16.01
#271E2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#271E2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E2E
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E2E#FFFFFF#000000##FFFFFF
##271E2E1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B212F
Deuteranopia (green-blind)
#1D222E
Tritanopia (blue-blind)
#262024
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271e2e;
/* rgb */ color: rgb(39, 30, 46);
/* oklch */ color: oklch(25.3% 0.032 309.8);
Tailwind
colors: {
  custom: {
    50: '#615966',
    500: '#271e2e',
    950: '#000000',
  },
}
SCSS
$custom: #271e2e;
$custom-light: #615966;
$custom-dark: #000000;
JSON
{
  "hex": "#271e2e",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 46
  },
  "hsl": {
    "h": 273.75,
    "s": 21.053,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25295,
    "c": 0.03212,
    "h": 309.8
  },
  "luminance": 0.01557
}

Semantic roles & 50–950 ramp

primary
#271E2E
secondary
#526048
accent
#BE6A8F
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271E2E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#271E2E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva