#270F2D#270F2D

#270F2D is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.1% C 0.064 H 319.3°. Best body text is #FFFFFF at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#270F2D
RGBrgb(39, 15, 45)
HSLhsl(288, 50%, 12%)
HSVhsv(288, 67%, 18%)
CMYKcmyk(13.3%, 66.7%, 0%, 82.4%)
CIE-LABlab(8.68, 18.53, -14.97)
CIE-LCHlch(8.68, 23.82, 321.06°)
OKLaboklab(22.05% 0.0483 -0.0416)
OKLCHoklch(22.05% 0.064 319.3)
XYZxyz(1.4811, 0.9625, 2.5899)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F2D #152D0F
analogous
#180F2D #270F2D #2D0F24
triadic
#270F2D #2D270F #0F2D27
tetradic
#270F2D #2D180F #152D0F #0F242D
square
#270F2D #2D180F #152D0F #0F242D
split-complementary
#270F2D #242D0F #0F2D18
monochromatic
#140817 #140817 #270F2D #4F1E5B #772E89

Accessibility & contrast

On white

17.61
#270F2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#270F2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270F2D
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F2D#FFFFFF#000000##FFFFFF
##270F2D1.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09172E
Deuteranopia (green-blind)
#111A2C
Tritanopia (blue-blind)
#27131C
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #270f2d;
/* rgb */ color: rgb(39, 15, 45);
/* oklch */ color: oklch(22.1% 0.064 319.3);
Tailwind
colors: {
  custom: {
    50: '#624e66',
    500: '#270f2d',
    950: '#000000',
  },
}
SCSS
$custom: #270f2d;
$custom-light: #624e66;
$custom-dark: #000000;
JSON
{
  "hex": "#270f2d",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 45
  },
  "hsl": {
    "h": 288,
    "s": 50,
    "l": 11.765
  },
  "oklch": {
    "l": 0.22051,
    "c": 0.06378,
    "h": 319.3
  },
  "luminance": 0.00962
}

Semantic roles & 50–950 ramp

primary
#270F2D
secondary
#3C6631
accent
#DA4E6A
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #270F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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