#240227#240227

#240227 is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 18.9% C 0.082 H 324.7°. Best body text is #FFFFFF at 18.87:1 contrast (WCAG AA passes).

Color values

HEX#240227
RGBrgb(36, 2, 39)
HSLhsl(295, 90%, 8%)
HSVhsv(295, 95%, 15%)
CMYKcmyk(7.7%, 94.9%, 0%, 84.7%)
CIE-LABlab(5.10, 22.66, -16.11)
CIE-LCHlch(5.10, 27.80, 324.58°)
OKLaboklab(18.9% 0.0666 -0.0471)
OKLCHoklch(18.9% 0.082 324.7)
XYZxyz(1.1154, 0.5650, 1.9694)
Luminance0.0056 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240227 #052702
analogous
#110227 #240227 #270217
triadic
#240227 #272402 #022724
tetradic
#240227 #271102 #052702 #021727
square
#240227 #271102 #052702 #021727
split-complementary
#240227 #172702 #022711
monochromatic
#1B011D #1B011D #240227 #5A0561 #8F089B

Accessibility & contrast

On white

18.87
#240227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#240227 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240227
18.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240227#FFFFFF#000000##FFFFFF
##2402271.0018.871.1118.87
#FFFFFF18.871.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E28
Deuteranopia (green-blind)
#081326
Tritanopia (blue-blind)
#250713
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #240227;
/* rgb */ color: rgb(36, 2, 39);
/* oklch */ color: oklch(18.9% 0.082 324.7);
Tailwind
colors: {
  custom: {
    50: '#604761',
    500: '#240227',
    950: '#000000',
  },
}
SCSS
$custom: #240227;
$custom-light: #604761;
$custom-dark: #000000;
JSON
{
  "hex": "#240227",
  "rgb": {
    "r": 36,
    "g": 2,
    "b": 39
  },
  "hsl": {
    "h": 295.135,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.18901,
    "c": 0.08154,
    "h": 324.7
  },
  "luminance": 0.00565
}

Semantic roles & 50–950 ramp

primary
#240227
secondary
#1F6C18
accent
#FF293A
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#050005
muted
#797779

Preview Lab

Preview with #240227

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

Preview Lab → · Contrast checker → · Palette generator →

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