#150227#150227

#150227 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 16.2% C 0.075 H 303.8°. Best body text is #FFFFFF at 19.63:1 contrast (WCAG AA passes).

Color values

HEX#150227
RGBrgb(21, 2, 39)
HSLhsl(271, 90%, 8%)
HSVhsv(271, 95%, 15%)
CMYKcmyk(46.2%, 94.9%, 0%, 84.7%)
CIE-LABlab(3.16, 14.96, -19.30)
CIE-LCHlch(3.16, 24.42, 307.78°)
OKLaboklab(16.15% 0.042 -0.0627)
OKLCHoklch(16.15% 0.075 303.8)
XYZxyz(0.6971, 0.3493, 1.9498)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#150227 #142702
analogous
#030227 #150227 #270226
triadic
#150227 #271502 #022715
tetradic
#150227 #270302 #142702 #022627
square
#150227 #270302 #142702 #022627
split-complementary
#150227 #262702 #022703
monochromatic
#10011D #10011D #150227 #340561 #54089B

Accessibility & contrast

On white

19.63
#150227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#150227 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #150227
19.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##150227#FFFFFF#000000##FFFFFF
##1502271.0019.631.0719.63
#FFFFFF19.631.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B28
Deuteranopia (green-blind)
#000B26
Tritanopia (blue-blind)
#110A13
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #150227;
/* rgb */ color: rgb(21, 2, 39);
/* oklch */ color: oklch(16.2% 0.075 303.8);
Tailwind
colors: {
  custom: {
    50: '#524761',
    500: '#150227',
    950: '#000000',
  },
}
SCSS
$custom: #150227;
$custom-light: #524761;
$custom-dark: #000000;
JSON
{
  "hex": "#150227",
  "rgb": {
    "r": 21,
    "g": 2,
    "b": 39
  },
  "hsl": {
    "h": 270.811,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.16152,
    "c": 0.07546,
    "h": 303.8
  },
  "luminance": 0.00349
}

Semantic roles & 50–950 ramp

primary
#150227
secondary
#416C18
accent
#FF2991
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#020005
muted
#787779

Preview Lab

Preview with #150227

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

Preview Lab → · Contrast checker → · Palette generator →

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