#240212#240212

#240212 is a very dark, moderate pink. Relative luminance 0.005; OKLCH L 17.5% C 0.064 H 354.8°. Best body text is #FFFFFF at 19.22:1 contrast (WCAG AA passes).

Color values

HEX#240212
RGBrgb(36, 2, 18)
HSLhsl(332, 89%, 7%)
HSVhsv(332, 94%, 14%)
CMYKcmyk(0%, 94.4%, 50%, 85.9%)
CIE-LABlab(4.18, 17.16, -1.61)
CIE-LCHlch(4.18, 17.24, 354.63°)
OKLaboklab(17.51% 0.0641 -0.0059)
OKLCHoklch(17.51% 0.064 354.8)
XYZxyz(0.8585, 0.4623, 0.6162)
Luminance0.0046 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240212 #022414
analogous
#240223 #240212 #240302
triadic
#240212 #122402 #021224
tetradic
#240212 #232402 #022414 #030224
square
#240212 #232402 #022414 #030224
split-complementary
#240212 #022403 #022324
monochromatic
#1D020E #1D020E #240212 #5E052F #98084C

Accessibility & contrast

On white

19.22
#240212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#240212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240212
19.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240212#FFFFFF#000000##FFFFFF
##2402121.0019.221.0919.22
#FFFFFF19.221.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#070A12
Deuteranopia (green-blind)
#111111
Tritanopia (blue-blind)
#280008
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #240212;
/* rgb */ color: rgb(36, 2, 18);
/* oklch */ color: oklch(17.5% 0.064 354.8);
Tailwind
colors: {
  custom: {
    50: '#5f4750',
    500: '#240212',
    950: '#000000',
  },
}
SCSS
$custom: #240212;
$custom-light: #5f4750;
$custom-dark: #000000;
JSON
{
  "hex": "#240212",
  "rgb": {
    "r": 36,
    "g": 2,
    "b": 18
  },
  "hsl": {
    "h": 331.765,
    "s": 89.474,
    "l": 7.451
  },
  "oklch": {
    "l": 0.17509,
    "c": 0.06439,
    "h": 354.8
  },
  "luminance": 0.00462
}

Semantic roles & 50–950 ramp

primary
#240212
secondary
#186A43
accent
#FF9A29
background
#F5F4F4
surface
#E9E6E7
border
#C5C2C3
text
#050002
muted
#797778

Preview Lab

Preview with #240212

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

Preview Lab → · Contrast checker → · Palette generator →

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