#271D32#271D32

#271D32 is a dark, muted violet. Relative luminance 0.015; OKLCH L 25.3% C 0.041 H 305.5°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#271D32
RGBrgb(39, 29, 50)
HSLhsl(269, 27%, 15%)
HSVhsv(269, 42%, 20%)
CMYKcmyk(22%, 42%, 0%, 80.4%)
CIE-LABlab(12.86, 10.13, -12.06)
CIE-LCHlch(12.86, 15.75, 310.02°)
OKLaboklab(25.28% 0.0238 -0.0333)
OKLCHoklch(25.28% 0.041 305.5)
XYZxyz(1.8517, 1.5404, 3.2168)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D32 #28321D
analogous
#1D1D32 #271D32 #311D32
triadic
#271D32 #32271D #1D3227
tetradic
#271D32 #321D1D #28321D #1D3231
square
#271D32 #321D1D #28321D #1D3231
split-complementary
#271D32 #32311D #1D321D
monochromatic
#0F0B13 #0F0B13 #271D32 #453359 #634A7F

Accessibility & contrast

On white

16.06
#271D32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D32
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D32#FFFFFF#000000##FFFFFF
##271D321.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192133
Deuteranopia (green-blind)
#1B2131
Tritanopia (blue-blind)
#252025
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271d32;
/* rgb */ color: rgb(39, 29, 50);
/* oklch */ color: oklch(25.3% 0.041 305.5);
Tailwind
colors: {
  custom: {
    50: '#61596a',
    500: '#271d32',
    950: '#000000',
  },
}
SCSS
$custom: #271d32;
$custom-light: #61596a;
$custom-dark: #000000;
JSON
{
  "hex": "#271d32",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 50
  },
  "hsl": {
    "h": 268.571,
    "s": 26.582,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25283,
    "c": 0.04095,
    "h": 305.5
  },
  "luminance": 0.0154
}

Semantic roles & 50–950 ramp

primary
#271D32
secondary
#566546
accent
#C36596
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271D32

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

Preview Lab → · Contrast checker → · Palette generator →

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