#270228#270228

#270228 is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.6% C 0.084 H 327.1°. Best body text is #FFFFFF at 18.66:1 contrast (WCAG AA passes).

Color values

HEX#270228
RGBrgb(39, 2, 40)
HSLhsl(298, 90%, 8%)
HSVhsv(298, 95%, 16%)
CMYKcmyk(2.5%, 95%, 0%, 84.3%)
CIE-LABlab(5.67, 24.33, -15.95)
CIE-LCHlch(5.67, 29.10, 326.75°)
OKLaboklab(19.58% 0.0706 -0.0457)
OKLCHoklch(19.58% 0.084 327.1)
XYZxyz(1.2414, 0.6280, 2.0629)
Luminance0.0063 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270228 #032802
analogous
#140228 #270228 #280216
triadic
#270228 #282702 #022827
tetradic
#270228 #281402 #032802 #021628
square
#270228 #281402 #032802 #021628
split-complementary
#270228 #162802 #022814
monochromatic
#1C011D #1C011D #270228 #600562 #99089D

Accessibility & contrast

On white

18.66
#270228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#270228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270228
18.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270228#FFFFFF#000000##FFFFFF
##2702281.0018.661.1318.66
#FFFFFF18.661.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F29
Deuteranopia (green-blind)
#0A1427
Tritanopia (blue-blind)
#280714
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #270228;
/* rgb */ color: rgb(39, 2, 40);
/* oklch */ color: oklch(19.6% 0.084 327.1);
Tailwind
colors: {
  custom: {
    50: '#634762',
    500: '#270228',
    950: '#000000',
  },
}
SCSS
$custom: #270228;
$custom-light: #634762;
$custom-dark: #000000;
JSON
{
  "hex": "#270228",
  "rgb": {
    "r": 39,
    "g": 2,
    "b": 40
  },
  "hsl": {
    "h": 298.421,
    "s": 90.476,
    "l": 8.235
  },
  "oklch": {
    "l": 0.19575,
    "c": 0.08405,
    "h": 327.1
  },
  "luminance": 0.00628
}

Semantic roles & 50–950 ramp

primary
#270228
secondary
#1B6D19
accent
#FF292E
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#050005
muted
#7A7779

Preview Lab

Preview with #270228

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

Preview Lab → · Contrast checker → · Palette generator →

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