#240302#240302

#240302 is a very dark, muted red. Relative luminance 0.004; OKLCH L 17.1% C 0.059 H 28.7°. Best body text is #FFFFFF at 19.28:1 contrast (WCAG AA passes).

Color values

HEX#240302
RGBrgb(36, 3, 2)
HSLhsl(2, 89%, 7%)
HSVhsv(2, 94%, 14%)
CMYKcmyk(0%, 91.7%, 94.4%, 85.9%)
CIE-LABlab(4.02, 14.28, 5.46)
CIE-LCHlch(4.02, 15.28, 20.92°)
OKLaboklab(17.15% 0.0521 0.0285)
OKLCHoklch(17.15% 0.059 28.7)
XYZxyz(0.7712, 0.4447, 0.1027)
Luminance0.0044 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240302 #022324
analogous
#240212 #240302 #241402
triadic
#240302 #022403 #030224
tetradic
#240302 #122402 #022324 #140224
square
#240302 #122402 #022324 #140224
split-complementary
#240302 #022414 #021224
monochromatic
#1D0202 #1D0202 #240302 #5E0805 #980D08

Accessibility & contrast

On white

19.28
#240302 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240302
19.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240302#FFFFFF#000000##FFFFFF
##2403021.0019.281.0919.28
#FFFFFF19.281.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C0902
Deuteranopia (green-blind)
#141101
Tritanopia (blue-blind)
#290003
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #240302;
/* rgb */ color: rgb(36, 3, 2);
/* oklch */ color: oklch(17.1% 0.059 28.7);
Tailwind
colors: {
  custom: {
    50: '#5f4748',
    500: '#240302',
    950: '#000000',
  },
}
SCSS
$custom: #240302;
$custom-light: #5f4748;
$custom-dark: #000000;
JSON
{
  "hex": "#240302",
  "rgb": {
    "r": 36,
    "g": 3,
    "b": 2
  },
  "hsl": {
    "h": 1.765,
    "s": 89.474,
    "l": 7.451
  },
  "oklch": {
    "l": 0.17147,
    "c": 0.05935,
    "h": 28.7
  },
  "luminance": 0.00445
}

Semantic roles & 50–950 ramp

primary
#240302
secondary
#18676A
accent
#F9FF29
background
#F5F4F4
surface
#E9E6E6
border
#C5C2C2
text
#050000
muted
#797777

Preview Lab

Preview with #240302

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

Preview Lab → · Contrast checker → · Palette generator →

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