#271F33#271F33

#271F33 is a dark, muted violet. Relative luminance 0.017; OKLCH L 25.8% C 0.038 H 302.2°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#271F33
RGBrgb(39, 31, 51)
HSLhsl(264, 24%, 16%)
HSVhsv(264, 39%, 20%)
CMYKcmyk(23.5%, 39.2%, 0%, 80%)
CIE-LABlab(13.53, 8.97, -11.74)
CIE-LCHlch(13.53, 14.78, 307.38°)
OKLaboklab(25.81% 0.0204 -0.0324)
OKLCHoklch(25.81% 0.038 302.2)
XYZxyz(1.9241, 1.6503, 3.3485)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F33 #2B331F
analogous
#1F2133 #271F33 #311F33
triadic
#271F33 #33271F #1F3327
tetradic
#271F33 #331F21 #2B331F #1F3331
square
#271F33 #331F21 #2B331F #1F3331
split-complementary
#271F33 #33311F #21331F
monochromatic
#0F0C13 #0F0C13 #271F33 #443659 #614D7F

Accessibility & contrast

On white

15.79
#271F33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#271F33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F33
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F33#FFFFFF#000000##FFFFFF
##271F331.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2234
Deuteranopia (green-blind)
#1C2332
Tritanopia (blue-blind)
#252226
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #271f33;
/* rgb */ color: rgb(39, 31, 51);
/* oklch */ color: oklch(25.8% 0.038 302.2);
Tailwind
colors: {
  custom: {
    50: '#615a6a',
    500: '#271f33',
    950: '#000000',
  },
}
SCSS
$custom: #271f33;
$custom-light: #615a6a;
$custom-dark: #000000;
JSON
{
  "hex": "#271f33",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 51
  },
  "hsl": {
    "h": 264,
    "s": 24.39,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25812,
    "c": 0.03829,
    "h": 302.2
  },
  "luminance": 0.0165
}

Semantic roles & 50–950 ramp

primary
#271F33
secondary
#5A6648
accent
#C1679D
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #271F33

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

Preview Lab → · Contrast checker → · Palette generator →

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