#270336#270336

#270336 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.0% C 0.096 H 313.4°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#270336
RGBrgb(39, 3, 54)
HSLhsl(282, 89%, 11%)
HSVhsv(282, 94%, 21%)
CMYKcmyk(27.8%, 94.4%, 0%, 78.8%)
CIE-LABlab(6.89, 27.72, -24.46)
CIE-LCHlch(6.89, 36.96, 318.57°)
OKLaboklab(20.96% 0.0659 -0.0695)
OKLCHoklch(20.96% 0.096 313.4)
XYZxyz(1.5350, 0.7629, 3.5557)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270336 #123603
analogous
#0D0336 #270336 #36032B
triadic
#270336 #362703 #033627
tetradic
#270336 #360D03 #123603 #032B36
square
#270336 #360D03 #123603 #032B36
split-complementary
#270336 #2B3603 #03360D
monochromatic
#15021D #15021D #270336 #510670 #7B09AA

Accessibility & contrast

On white

18.22
#270336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#270336 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270336
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270336#FFFFFF#000000##FFFFFF
##2703361.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001337
Deuteranopia (green-blind)
#001635
Tritanopia (blue-blind)
#250F1C
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #270336;
/* rgb */ color: rgb(39, 3, 54);
/* oklch */ color: oklch(21.0% 0.096 313.4);
Tailwind
colors: {
  custom: {
    50: '#64486d',
    500: '#270336',
    950: '#000000',
  },
}
SCSS
$custom: #270336;
$custom-light: #64486d;
$custom-dark: #000000;
JSON
{
  "hex": "#270336",
  "rgb": {
    "r": 39,
    "g": 3,
    "b": 54
  },
  "hsl": {
    "h": 282.353,
    "s": 89.474,
    "l": 11.176
  },
  "oklch": {
    "l": 0.2096,
    "c": 0.09578,
    "h": 313.4
  },
  "luminance": 0.00763
}

Semantic roles & 50–950 ramp

primary
#270336
secondary
#37791C
accent
#FF2968
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060007
muted
#7A777A

Preview Lab

Preview with #270336

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

Preview Lab → · Contrast checker → · Palette generator →

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