#271D33#271D33

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

Color values

HEX#271D33
RGBrgb(39, 29, 51)
HSLhsl(267, 28%, 16%)
HSVhsv(267, 43%, 20%)
CMYKcmyk(23.5%, 43.1%, 0%, 80%)
CIE-LABlab(12.92, 10.42, -12.70)
CIE-LCHlch(12.92, 16.43, 309.38°)
OKLaboklab(25.34% 0.0241 -0.0351)
OKLCHoklch(25.34% 0.043 304.4)
XYZxyz(1.8735, 1.5491, 3.3316)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D33 #29331D
analogous
#1D1E33 #271D33 #321D33
triadic
#271D33 #33271D #1D3327
tetradic
#271D33 #331D1E #29331D #1D3332
square
#271D33 #331D1E #29331D #1D3332
split-complementary
#271D33 #33321D #1E331D
monochromatic
#0F0B14 #0F0B14 #271D33 #45335A #634981

Accessibility & contrast

On white

16.03
#271D33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D33
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D33#FFFFFF#000000##FFFFFF
##271D331.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271d33;
/* rgb */ color: rgb(39, 29, 51);
/* oklch */ color: oklch(25.3% 0.043 304.4);
Tailwind
colors: {
  custom: {
    50: '#61596a',
    500: '#271d33',
    950: '#000000',
  },
}
SCSS
$custom: #271d33;
$custom-light: #61596a;
$custom-dark: #000000;
JSON
{
  "hex": "#271d33",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 51
  },
  "hsl": {
    "h": 267.273,
    "s": 27.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.25342,
    "c": 0.04261,
    "h": 304.4
  },
  "luminance": 0.01549
}

Semantic roles & 50–950 ramp

primary
#271D33
secondary
#576645
accent
#C46498
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271D33

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

Preview Lab → · Contrast checker → · Palette generator →

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