#270236#270236

#270236 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.8% C 0.098 H 313.7°. Best body text is #FFFFFF at 18.29:1 contrast (WCAG AA passes).

Color values

HEX#270236
RGBrgb(39, 2, 54)
HSLhsl(283, 93%, 11%)
HSVhsv(283, 96%, 21%)
CMYKcmyk(27.8%, 96.3%, 0%, 78.8%)
CIE-LABlab(6.69, 28.26, -24.78)
CIE-LCHlch(6.69, 37.59, 318.76°)
OKLaboklab(20.81% 0.0674 -0.0706)
OKLCHoklch(20.81% 0.098 313.7)
XYZxyz(1.5241, 0.7411, 3.5521)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270236 #113602
analogous
#0D0236 #270236 #36022B
triadic
#270236 #362702 #023627
tetradic
#270236 #360D02 #113602 #022B36
square
#270236 #360D02 #113602 #022B36
split-complementary
#270236 #2B3602 #02360D
monochromatic
#15011E #15011E #270236 #520471 #7C06AC

Accessibility & contrast

On white

18.29
#270236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270236
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270236#FFFFFF#000000##FFFFFF
##2702361.0018.291.1518.29
#FFFFFF18.291.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #270236;
/* rgb */ color: rgb(39, 2, 54);
/* oklch */ color: oklch(20.8% 0.098 313.7);
Tailwind
colors: {
  custom: {
    50: '#64476d',
    500: '#270236',
    950: '#000000',
  },
}
SCSS
$custom: #270236;
$custom-light: #64476d;
$custom-dark: #000000;
JSON
{
  "hex": "#270236",
  "rgb": {
    "r": 39,
    "g": 2,
    "b": 54
  },
  "hsl": {
    "h": 282.692,
    "s": 92.857,
    "l": 10.98
  },
  "oklch": {
    "l": 0.20808,
    "c": 0.09761,
    "h": 313.7
  },
  "luminance": 0.00741
}

Semantic roles & 50–950 ramp

primary
#270236
secondary
#367A1A
accent
#FF2967
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060007
muted
#7A777A

Preview Lab

Preview with #270236

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

Preview Lab → · Contrast checker → · Palette generator →

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