#240218#240218

#240218 is a very dark, moderate pink. Relative luminance 0.005; OKLCH L 17.8% C 0.068 H 344.8°. Best body text is #FFFFFF at 19.15:1 contrast (WCAG AA passes).

Color values

HEX#240218
RGBrgb(36, 2, 24)
HSLhsl(321, 89%, 7%)
HSVhsv(321, 94%, 14%)
CMYKcmyk(0%, 94.4%, 33.3%, 85.9%)
CIE-LABlab(4.38, 18.50, -5.46)
CIE-LCHlch(4.38, 19.29, 343.55°)
OKLaboklab(17.83% 0.0659 -0.0179)
OKLCHoklch(17.83% 0.068 344.8)
XYZxyz(0.9142, 0.4845, 0.9094)
Luminance0.0048 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240218 #02240E
analogous
#1F0224 #240218 #240207
triadic
#240218 #182402 #021824
tetradic
#240218 #241F02 #02240E #020724
square
#240218 #241F02 #02240E #020724
split-complementary
#240218 #072402 #02241F
monochromatic
#1D0213 #1D0213 #240218 #5E053F #980865

Accessibility & contrast

On white

19.15
#240218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#240218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240218
19.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240218#FFFFFF#000000##FFFFFF
##2402181.0019.151.1019.15
#FFFFFF19.151.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#050B19
Deuteranopia (green-blind)
#0F1117
Tritanopia (blue-blind)
#27020B
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #240218;
/* rgb */ color: rgb(36, 2, 24);
/* oklch */ color: oklch(17.8% 0.068 344.8);
Tailwind
colors: {
  custom: {
    50: '#5f4754',
    500: '#240218',
    950: '#000000',
  },
}
SCSS
$custom: #240218;
$custom-light: #5f4754;
$custom-dark: #000000;
JSON
{
  "hex": "#240218",
  "rgb": {
    "r": 36,
    "g": 2,
    "b": 24
  },
  "hsl": {
    "h": 321.176,
    "s": 89.474,
    "l": 7.451
  },
  "oklch": {
    "l": 0.17831,
    "c": 0.06833,
    "h": 344.8
  },
  "luminance": 0.00484
}

Semantic roles & 50–950 ramp

primary
#240218
secondary
#186A35
accent
#FF7429
background
#F5F4F4
surface
#E9E6E7
border
#C5C2C3
text
#050002
muted
#797778

Preview Lab

Preview with #240218

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

Preview Lab → · Contrast checker → · Palette generator →

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