#271F35#271F35

#271F35 is a dark, muted violet. Relative luminance 0.017; OKLCH L 25.9% C 0.042 H 300.2°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#271F35
RGBrgb(39, 31, 53)
HSLhsl(262, 26%, 16%)
HSVhsv(262, 42%, 21%)
CMYKcmyk(26.4%, 41.5%, 0%, 79.2%)
CIE-LABlab(13.64, 9.56, -13.00)
CIE-LCHlch(13.64, 16.14, 306.34°)
OKLaboklab(25.93% 0.021 -0.036)
OKLCHoklch(25.93% 0.042 300.2)
XYZxyz(1.9691, 1.6683, 3.5858)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F35 #2D351F
analogous
#1F2235 #271F35 #321F35
triadic
#271F35 #35271F #1F3527
tetradic
#271F35 #351F22 #2D351F #1F3532
square
#271F35 #351F22 #2D351F #1F3532
split-complementary
#271F35 #35321F #22351F
monochromatic
#0E0B13 #0E0B13 #271F35 #43365C #604C82

Accessibility & contrast

On white

15.75
#271F35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F35
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F35#FFFFFF#000000##FFFFFF
##271F351.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2336
Deuteranopia (green-blind)
#1B2334
Tritanopia (blue-blind)
#242327
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #271f35;
/* rgb */ color: rgb(39, 31, 53);
/* oklch */ color: oklch(25.9% 0.042 300.2);
Tailwind
colors: {
  custom: {
    50: '#615a6c',
    500: '#271f35',
    950: '#000000',
  },
}
SCSS
$custom: #271f35;
$custom-light: #615a6c;
$custom-dark: #000000;
JSON
{
  "hex": "#271f35",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 53
  },
  "hsl": {
    "h": 261.818,
    "s": 26.19,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25929,
    "c": 0.0417,
    "h": 300.2
  },
  "luminance": 0.01668
}

Semantic roles & 50–950 ramp

primary
#271F35
secondary
#5C6848
accent
#C365A1
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050307
muted
#79787A

Preview Lab

Preview with #271F35

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

Preview Lab → · Contrast checker → · Palette generator →

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