#270227#270227

#270227 is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.5% C 0.083 H 328.2°. Best body text is #FFFFFF at 18.68:1 contrast (WCAG AA passes).

Color values

HEX#270227
RGBrgb(39, 2, 39)
HSLhsl(300, 90%, 8%)
HSVhsv(300, 95%, 15%)
CMYKcmyk(0%, 94.9%, 0%, 84.7%)
CIE-LABlab(5.61, 24.06, -15.28)
CIE-LCHlch(5.61, 28.50, 327.58°)
OKLaboklab(19.5% 0.0707 -0.0438)
OKLCHoklch(19.5% 0.083 328.2)
XYZxyz(1.2246, 0.6213, 1.9745)
Luminance0.0062 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270227 #022702
analogous
#140227 #270227 #270214
triadic
#270227 #272702 #022727
tetradic
#270227 #271402 #022702 #021427
square
#270227 #271402 #022702 #021427
split-complementary
#270227 #142702 #022714
monochromatic
#1D011D #1D011D #270227 #610561 #9B089B

Accessibility & contrast

On white

18.68
#270227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#270227 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270227
18.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270227#FFFFFF#000000##FFFFFF
##2702271.0018.681.1218.68
#FFFFFF18.681.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F28
Deuteranopia (green-blind)
#0B1426
Tritanopia (blue-blind)
#290613
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #270227;
/* rgb */ color: rgb(39, 2, 39);
/* oklch */ color: oklch(19.5% 0.083 328.2);
Tailwind
colors: {
  custom: {
    50: '#634761',
    500: '#270227',
    950: '#000000',
  },
}
SCSS
$custom: #270227;
$custom-light: #634761;
$custom-dark: #000000;
JSON
{
  "hex": "#270227",
  "rgb": {
    "r": 39,
    "g": 2,
    "b": 39
  },
  "hsl": {
    "h": 300,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.19496,
    "c": 0.08313,
    "h": 328.2
  },
  "luminance": 0.00621
}

Semantic roles & 50–950 ramp

primary
#270227
secondary
#186C18
accent
#FF2929
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#050005
muted
#7A7779

Preview Lab

Preview with #270227

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

Preview Lab → · Contrast checker → · Palette generator →

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