#271E36#271E36

#271E36 is a dark, muted violet. Relative luminance 0.016; OKLCH L 25.8% C 0.046 H 300.5°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#271E36
RGBrgb(39, 30, 54)
HSLhsl(263, 29%, 16%)
HSVhsv(263, 44%, 21%)
CMYKcmyk(27.8%, 44.4%, 0%, 78.8%)
CIE-LABlab(13.39, 10.59, -14.11)
CIE-LCHlch(13.39, 17.64, 306.90°)
OKLaboklab(25.76% 0.0231 -0.0392)
OKLCHoklch(25.76% 0.046 300.5)
XYZxyz(1.9667, 1.6262, 3.6996)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E36 #2D361E
analogous
#1E2136 #271E36 #331E36
triadic
#271E36 #36271E #1E3627
tetradic
#271E36 #361E21 #2D361E #1E3633
square
#271E36 #361E21 #2D361E #1E3633
split-complementary
#271E36 #36331E #21361E
monochromatic
#0E0B14 #0E0B14 #271E36 #43345D #604A85

Accessibility & contrast

On white

15.85
#271E36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E36
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E36#FFFFFF#000000##FFFFFF
##271E361.0015.851.3315.85
#FFFFFF15.851.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182237
Deuteranopia (green-blind)
#1A2235
Tritanopia (blue-blind)
#242227
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #271e36;
/* rgb */ color: rgb(39, 30, 54);
/* oklch */ color: oklch(25.8% 0.046 300.5);
Tailwind
colors: {
  custom: {
    50: '#61596d',
    500: '#271e36',
    950: '#000000',
  },
}
SCSS
$custom: #271e36;
$custom-light: #61596d;
$custom-dark: #000000;
JSON
{
  "hex": "#271e36",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 54
  },
  "hsl": {
    "h": 262.5,
    "s": 28.571,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25756,
    "c": 0.04551,
    "h": 300.5
  },
  "luminance": 0.01626
}

Semantic roles & 50–950 ramp

primary
#271E36
secondary
#5C6946
accent
#C563A0
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050307
muted
#79787A

Preview Lab

Preview with #271E36

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

Preview Lab → · Contrast checker → · Palette generator →

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