#271D30#271D30

#271D30 is a dark, muted violet. Relative luminance 0.015; OKLCH L 25.2% C 0.038 H 308.0°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#271D30
RGBrgb(39, 29, 48)
HSLhsl(272, 25%, 15%)
HSVhsv(272, 40%, 19%)
CMYKcmyk(18.7%, 39.6%, 0%, 81.2%)
CIE-LABlab(12.76, 9.56, -10.79)
CIE-LCHlch(12.76, 14.41, 311.54°)
OKLaboklab(25.17% 0.0232 -0.0297)
OKLCHoklch(25.17% 0.038 308)
XYZxyz(1.8095, 1.5235, 2.9945)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D30 #26301D
analogous
#1E1D30 #271D30 #301D2F
triadic
#271D30 #30271D #1D3027
tetradic
#271D30 #301E1D #26301D #1D2F30
square
#271D30 #301E1D #26301D #1D2F30
split-complementary
#271D30 #2F301D #1D301E
monochromatic
#0F0C13 #0F0C13 #271D30 #463456 #654B7C

Accessibility & contrast

On white

16.10
#271D30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#271D30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D30
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D30#FFFFFF#000000##FFFFFF
##271D301.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271d30;
/* rgb */ color: rgb(39, 29, 48);
/* oklch */ color: oklch(25.2% 0.038 308.0);
Tailwind
colors: {
  custom: {
    50: '#615968',
    500: '#271d30',
    950: '#000000',
  },
}
SCSS
$custom: #271d30;
$custom-light: #615968;
$custom-dark: #000000;
JSON
{
  "hex": "#271d30",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 48
  },
  "hsl": {
    "h": 271.579,
    "s": 24.675,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25167,
    "c": 0.03765,
    "h": 308
  },
  "luminance": 0.01523
}

Semantic roles & 50–950 ramp

primary
#271D30
secondary
#546346
accent
#C16792
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271D30

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

Preview Lab → · Contrast checker → · Palette generator →

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