#270F2E#270F2E

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

Color values

HEX#270F2E
RGBrgb(39, 15, 46)
HSLhsl(286, 51%, 12%)
HSVhsv(286, 67%, 18%)
CMYKcmyk(15.2%, 67.4%, 0%, 82%)
CIE-LABlab(8.74, 18.79, -15.61)
CIE-LCHlch(8.74, 24.43, 320.28°)
OKLaboklab(22.12% 0.0484 -0.0435)
OKLCHoklch(22.12% 0.065 318.1)
XYZxyz(1.5006, 0.9703, 2.6925)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F2E #162E0F
analogous
#180F2E #270F2E #2E0F26
triadic
#270F2E #2E270F #0F2E27
tetradic
#270F2E #2E180F #162E0F #0F262E
square
#270F2E #2E180F #162E0F #0F262E
split-complementary
#270F2E #262E0F #0F2E18
monochromatic
#140817 #140817 #270F2E #4E1E5C #752D8A

Accessibility & contrast

On white

17.59
#270F2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270F2E
17.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F2E#FFFFFF#000000##FFFFFF
##270F2E1.0017.591.1917.59
#FFFFFF17.591.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08172F
Deuteranopia (green-blind)
#101A2D
Tritanopia (blue-blind)
#27141C
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #270f2e;
/* rgb */ color: rgb(39, 15, 46);
/* oklch */ color: oklch(22.1% 0.065 318.1);
Tailwind
colors: {
  custom: {
    50: '#624e67',
    500: '#270f2e',
    950: '#000000',
  },
}
SCSS
$custom: #270f2e;
$custom-light: #624e67;
$custom-dark: #000000;
JSON
{
  "hex": "#270f2e",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 46
  },
  "hsl": {
    "h": 286.452,
    "s": 50.82,
    "l": 11.961
  },
  "oklch": {
    "l": 0.22121,
    "c": 0.06509,
    "h": 318.1
  },
  "luminance": 0.0097
}

Semantic roles & 50–950 ramp

primary
#270F2E
secondary
#3D6831
accent
#DA4D6D
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #270F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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