#271E33#271E33

#271E33 is a dark, muted violet. Relative luminance 0.016; OKLCH L 25.6% C 0.040 H 303.4°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#271E33
RGBrgb(39, 30, 51)
HSLhsl(266, 26%, 16%)
HSVhsv(266, 41%, 20%)
CMYKcmyk(23.5%, 41.2%, 0%, 80%)
CIE-LABlab(13.22, 9.70, -12.22)
CIE-LCHlch(13.22, 15.60, 308.43°)
OKLaboklab(25.58% 0.0222 -0.0338)
OKLCHoklch(25.58% 0.04 303.4)
XYZxyz(1.8984, 1.5989, 3.3399)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E33 #2A331E
analogous
#1E1F33 #271E33 #311E33
triadic
#271E33 #33271E #1E3327
tetradic
#271E33 #331E1F #2A331E #1E3331
square
#271E33 #331E1F #2A331E #1E3331
split-complementary
#271E33 #33311E #1F331E
monochromatic
#0F0B13 #0F0B13 #271E33 #44355A #624B80

Accessibility & contrast

On white

15.91
#271E33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#271E33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E33
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E33#FFFFFF#000000##FFFFFF
##271E331.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192234
Deuteranopia (green-blind)
#1B2232
Tritanopia (blue-blind)
#252126
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #271e33;
/* rgb */ color: rgb(39, 30, 51);
/* oklch */ color: oklch(25.6% 0.040 303.4);
Tailwind
colors: {
  custom: {
    50: '#61596a',
    500: '#271e33',
    950: '#000000',
  },
}
SCSS
$custom: #271e33;
$custom-light: #61596a;
$custom-dark: #000000;
JSON
{
  "hex": "#271e33",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 51
  },
  "hsl": {
    "h": 265.714,
    "s": 25.926,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25576,
    "c": 0.04045,
    "h": 303.4
  },
  "luminance": 0.01599
}

Semantic roles & 50–950 ramp

primary
#271E33
secondary
#596647
accent
#C2659B
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271E33

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

Preview Lab → · Contrast checker → · Palette generator →

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