#270836#270836

#270836 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.7% C 0.087 H 312.2°. Best body text is #FFFFFF at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#270836
RGBrgb(39, 8, 54)
HSLhsl(280, 74%, 12%)
HSVhsv(280, 85%, 21%)
CMYKcmyk(27.8%, 85.2%, 0%, 78.8%)
CIE-LABlab(7.87, 24.96, -22.88)
CIE-LCHlch(7.87, 33.86, 317.50°)
OKLaboklab(21.69% 0.0586 -0.0647)
OKLCHoklch(21.69% 0.087 312.2)
XYZxyz(1.5893, 0.8714, 3.5738)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270836 #173608
analogous
#100836 #270836 #36082E
triadic
#270836 #362708 #083627
tetradic
#270836 #361008 #173608 #082E36
square
#270836 #361008 #173608 #082E36
split-complementary
#270836 #2E3608 #083610
monochromatic
#13041B #13041B #270836 #4D106B #7418A1

Accessibility & contrast

On white

17.88
#270836 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#270836 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270836
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270836#FFFFFF#000000##FFFFFF
##2708361.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001637
Deuteranopia (green-blind)
#041835
Tritanopia (blue-blind)
#25121E
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #270836;
/* rgb */ color: rgb(39, 8, 54);
/* oklch */ color: oklch(21.7% 0.087 312.2);
Tailwind
colors: {
  custom: {
    50: '#634b6d',
    500: '#270836',
    950: '#000000',
  },
}
SCSS
$custom: #270836;
$custom-light: #634b6d;
$custom-dark: #000000;
JSON
{
  "hex": "#270836",
  "rgb": {
    "r": 39,
    "g": 8,
    "b": 54
  },
  "hsl": {
    "h": 280.435,
    "s": 74.194,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21688,
    "c": 0.08726,
    "h": 312.2
  },
  "luminance": 0.00871
}

Semantic roles & 50–950 ramp

primary
#270836
secondary
#3F7525
accent
#F13774
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050107
muted
#7A777A

Preview Lab

Preview with #270836

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

Preview Lab → · Contrast checker → · Palette generator →

#270836 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva