#271F39#271F39

#271F39 is a dark, muted violet. Relative luminance 0.017; OKLCH L 26.2% C 0.049 H 297.1°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#271F39
RGBrgb(39, 31, 57)
HSLhsl(258, 30%, 17%)
HSVhsv(258, 46%, 22%)
CMYKcmyk(31.6%, 45.6%, 0%, 77.6%)
CIE-LABlab(13.87, 10.79, -15.49)
CIE-LCHlch(13.87, 18.88, 304.85°)
OKLaboklab(26.17% 0.0221 -0.0432)
OKLCHoklch(26.17% 0.049 297.1)
XYZxyz(2.0650, 1.7067, 4.0907)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F39 #31391F
analogous
#1F2439 #271F39 #341F39
triadic
#271F39 #39271F #1F3927
tetradic
#271F39 #391F24 #31391F #1F3934
square
#271F39 #391F24 #31391F #1F3934
split-complementary
#271F39 #39341F #24391F
monochromatic
#0E0B14 #0E0B14 #271F39 #423561 #5D4A88

Accessibility & contrast

On white

15.66
#271F39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#271F39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F39
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F39#FFFFFF#000000##FFFFFF
##271F391.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18233A
Deuteranopia (green-blind)
#192338
Tritanopia (blue-blind)
#232329
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #271f39;
/* rgb */ color: rgb(39, 31, 57);
/* oklch */ color: oklch(26.2% 0.049 297.1);
Tailwind
colors: {
  custom: {
    50: '#625a6f',
    500: '#271f39',
    950: '#000000',
  },
}
SCSS
$custom: #271f39;
$custom-light: #625a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#271f39",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 57
  },
  "hsl": {
    "h": 258.462,
    "s": 29.545,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26175,
    "c": 0.04854,
    "h": 297.1
  },
  "luminance": 0.01707
}

Semantic roles & 50–950 ramp

primary
#271F39
secondary
#616C47
accent
#C662A7
background
#F5F5F6
surface
#EAE9EC
border
#C6C5C7
text
#050307
muted
#79787A

Preview Lab

Preview with #271F39

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

Preview Lab → · Contrast checker → · Palette generator →

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