#240C2D#240C2D

#240C2D is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.1% C 0.068 H 315.8°. Best body text is #FFFFFF at 18.02:1 contrast (WCAG AA passes).

Color values

HEX#240C2D
RGBrgb(36, 12, 45)
HSLhsl(284, 58%, 11%)
HSVhsv(284, 73%, 18%)
CMYKcmyk(20%, 73.3%, 0%, 82.4%)
CIE-LABlab(7.47, 19.38, -16.91)
CIE-LCHlch(7.47, 25.72, 318.90°)
OKLaboklab(21.06% 0.0487 -0.0474)
OKLCHoklch(21.06% 0.068 315.8)
XYZxyz(1.3326, 0.8275, 2.5716)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C2D #152D0C
analogous
#130C2D #240C2D #2D0C25
triadic
#240C2D #2D240C #0C2D24
tetradic
#240C2D #2D130C #152D0C #0C252D
square
#240C2D #2D130C #152D0C #0C252D
split-complementary
#240C2D #252D0C #0C2D13
monochromatic
#130618 #130618 #240C2D #4B195D #71268E

Accessibility & contrast

On white

18.02
#240C2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#240C2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240C2D
18.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C2D#FFFFFF#000000##FFFFFF
##240C2D1.0018.021.1718.02
#FFFFFF18.021.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04152E
Deuteranopia (green-blind)
#0C172C
Tritanopia (blue-blind)
#23121A
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240c2d;
/* rgb */ color: rgb(36, 12, 45);
/* oklch */ color: oklch(21.1% 0.068 315.8);
Tailwind
colors: {
  custom: {
    50: '#604c66',
    500: '#240c2d',
    950: '#000000',
  },
}
SCSS
$custom: #240c2d;
$custom-light: #604c66;
$custom-dark: #000000;
JSON
{
  "hex": "#240c2d",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 45
  },
  "hsl": {
    "h": 283.636,
    "s": 57.895,
    "l": 11.176
  },
  "oklch": {
    "l": 0.21057,
    "c": 0.06792,
    "h": 315.8
  },
  "luminance": 0.00827
}

Semantic roles & 50–950 ramp

primary
#240C2D
secondary
#3D692C
accent
#E14771
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240C2D

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

Preview Lab → · Contrast checker → · Palette generator →

#240C2D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva