#270221#270221

#270221 is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.1% C 0.078 H 335.4°. Best body text is #FFFFFF at 18.80:1 contrast (WCAG AA passes).

Color values

HEX#270221
RGBrgb(39, 2, 33)
HSLhsl(310, 90%, 8%)
HSVhsv(310, 95%, 15%)
CMYKcmyk(0%, 94.9%, 15.4%, 84.7%)
CIE-LABlab(5.28, 22.48, -11.16)
CIE-LCHlch(5.28, 25.10, 333.59°)
OKLaboklab(19.05% 0.0707 -0.0324)
OKLCHoklch(19.05% 0.078 335.4)
XYZxyz(1.1329, 0.5847, 1.4917)
Luminance0.0059 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270221 #022708
analogous
#1A0227 #270221 #27020E
triadic
#270221 #212702 #022127
tetradic
#270221 #271A02 #022708 #020E27
square
#270221 #271A02 #022708 #020E27
split-complementary
#270221 #0E2702 #02271A
monochromatic
#1D0119 #1D0119 #270221 #610552 #9B0884

Accessibility & contrast

On white

18.80
#270221 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270221
18.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270221#FFFFFF#000000##FFFFFF
##2702211.0018.801.1218.80
#FFFFFF18.801.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#020E22
Deuteranopia (green-blind)
#0E1420
Tritanopia (blue-blind)
#2A0410
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #270221;
/* rgb */ color: rgb(39, 2, 33);
/* oklch */ color: oklch(19.1% 0.078 335.4);
Tailwind
colors: {
  custom: {
    50: '#62475c',
    500: '#270221',
    950: '#000000',
  },
}
SCSS
$custom: #270221;
$custom-light: #62475c;
$custom-dark: #000000;
JSON
{
  "hex": "#270221",
  "rgb": {
    "r": 39,
    "g": 2,
    "b": 33
  },
  "hsl": {
    "h": 309.73,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.19054,
    "c": 0.07776,
    "h": 335.4
  },
  "luminance": 0.00585
}

Semantic roles & 50–950 ramp

primary
#270221
secondary
#186C26
accent
#FF4C29
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#050004
muted
#7A7779

Preview Lab

Preview with #270221

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

Preview Lab → · Contrast checker → · Palette generator →

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