#270C2E#270C2E

#270C2E is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.6% C 0.071 H 318.9°. Best body text is #FFFFFF at 17.82:1 contrast (WCAG AA passes).

Color values

HEX#270C2E
RGBrgb(39, 12, 46)
HSLhsl(288, 59%, 11%)
HSVhsv(288, 74%, 18%)
CMYKcmyk(15.2%, 73.9%, 0%, 82%)
CIE-LABlab(8.05, 20.65, -16.70)
CIE-LCHlch(8.05, 26.56, 321.03°)
OKLaboklab(21.62% 0.0534 -0.0466)
OKLCHoklch(21.62% 0.071 318.9)
XYZxyz(1.4612, 0.8916, 2.6794)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270C2E #132E0C
analogous
#160C2E #270C2E #2E0C24
triadic
#270C2E #2E270C #0C2E27
tetradic
#270C2E #2E160C #132E0C #0C242E
square
#270C2E #2E160C #132E0C #0C242E
split-complementary
#270C2E #242E0C #0C2E16
monochromatic
#150618 #150618 #270C2E #50195F #79258F

Accessibility & contrast

On white

17.82
#270C2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270C2E
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270C2E#FFFFFF#000000##FFFFFF
##270C2E1.0017.821.1817.82
#FFFFFF17.821.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04162F
Deuteranopia (green-blind)
#0E192D
Tritanopia (blue-blind)
#27121B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #270c2e;
/* rgb */ color: rgb(39, 12, 46);
/* oklch */ color: oklch(21.6% 0.071 318.9);
Tailwind
colors: {
  custom: {
    50: '#624c67',
    500: '#270c2e',
    950: '#000000',
  },
}
SCSS
$custom: #270c2e;
$custom-light: #624c67;
$custom-dark: #000000;
JSON
{
  "hex": "#270c2e",
  "rgb": {
    "r": 39,
    "g": 12,
    "b": 46
  },
  "hsl": {
    "h": 287.647,
    "s": 58.621,
    "l": 11.373
  },
  "oklch": {
    "l": 0.21619,
    "c": 0.07086,
    "h": 318.9
  },
  "luminance": 0.00892
}

Semantic roles & 50–950 ramp

primary
#270C2E
secondary
#396A2C
accent
#E24666
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #270C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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