#270C2F#270C2F

#270C2F is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.7% C 0.072 H 317.8°. Best body text is #FFFFFF at 17.80:1 contrast (WCAG AA passes).

Color values

HEX#270C2F
RGBrgb(39, 12, 47)
HSLhsl(286, 59%, 12%)
HSVhsv(286, 74%, 18%)
CMYKcmyk(17%, 74.5%, 0%, 81.6%)
CIE-LABlab(8.13, 20.90, -17.33)
CIE-LCHlch(8.13, 27.15, 320.34°)
OKLaboklab(21.69% 0.0534 -0.0484)
OKLCHoklch(21.69% 0.072 317.8)
XYZxyz(1.4812, 0.8996, 2.7844)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270C2F #142F0C
analogous
#160C2F #270C2F #2F0C26
triadic
#270C2F #2F270C #0C2F27
tetradic
#270C2F #2F160C #142F0C #0C262F
square
#270C2F #2F160C #142F0C #0C262F
split-complementary
#270C2F #262F0C #0C2F16
monochromatic
#140618 #140618 #270C2F #4F1860 #782591

Accessibility & contrast

On white

17.80
#270C2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#270C2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270C2F
17.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270C2F#FFFFFF#000000##FFFFFF
##270C2F1.0017.801.1817.80
#FFFFFF17.801.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041630
Deuteranopia (green-blind)
#0D192E
Tritanopia (blue-blind)
#27121B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #270c2f;
/* rgb */ color: rgb(39, 12, 47);
/* oklch */ color: oklch(21.7% 0.072 317.8);
Tailwind
colors: {
  custom: {
    50: '#624c67',
    500: '#270c2f',
    950: '#000000',
  },
}
SCSS
$custom: #270c2f;
$custom-light: #624c67;
$custom-dark: #000000;
JSON
{
  "hex": "#270c2f",
  "rgb": {
    "r": 39,
    "g": 12,
    "b": 47
  },
  "hsl": {
    "h": 286.286,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21694,
    "c": 0.0721,
    "h": 317.8
  },
  "luminance": 0.009
}

Semantic roles & 50–950 ramp

primary
#270C2F
secondary
#3A6B2C
accent
#E34569
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #270C2F

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

Preview Lab → · Contrast checker → · Palette generator →

#270C2F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva