#270C2A#270C2A

#270C2A is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.3% C 0.066 H 323.6°. Best body text is #FFFFFF at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#270C2A
RGBrgb(39, 12, 42)
HSLhsl(294, 56%, 11%)
HSVhsv(294, 71%, 16%)
CMYKcmyk(7.1%, 71.4%, 0%, 83.5%)
CIE-LABlab(7.78, 19.65, -14.15)
CIE-LCHlch(7.78, 24.21, 324.24°)
OKLaboklab(21.33% 0.0531 -0.0392)
OKLCHoklch(21.33% 0.066 323.6)
XYZxyz(1.3861, 0.8615, 2.2833)
Luminance0.0086 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270C2A #0F2A0C
analogous
#180C2A #270C2A #2A0C1E
triadic
#270C2A #2A270C #0C2A27
tetradic
#270C2A #2A180C #0F2A0C #0C1E2A
square
#270C2A #2A180C #0F2A0C #0C1E2A
split-complementary
#270C2A #1E2A0C #0C2A18
monochromatic
#160718 #160718 #270C2A #531A5A #7F2789

Accessibility & contrast

On white

17.92
#270C2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#270C2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270C2A
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270C2A#FFFFFF#000000##FFFFFF
##270C2A1.0017.921.1717.92
#FFFFFF17.921.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07152B
Deuteranopia (green-blind)
#101829
Tritanopia (blue-blind)
#281019
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #270c2a;
/* rgb */ color: rgb(39, 12, 42);
/* oklch */ color: oklch(21.3% 0.066 323.6);
Tailwind
colors: {
  custom: {
    50: '#624c63',
    500: '#270c2a',
    950: '#000000',
  },
}
SCSS
$custom: #270c2a;
$custom-light: #624c63;
$custom-dark: #000000;
JSON
{
  "hex": "#270c2a",
  "rgb": {
    "r": 39,
    "g": 12,
    "b": 42
  },
  "hsl": {
    "h": 294,
    "s": 55.556,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21331,
    "c": 0.06601,
    "h": 323.6
  },
  "luminance": 0.00861
}

Semantic roles & 50–950 ramp

primary
#270C2A
secondary
#32652D
accent
#DF4958
background
#F5F4F5
surface
#EAE7EA
border
#C6C3C6
text
#050105
muted
#797779

Preview Lab

Preview with #270C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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