#240A2D#240A2D

#240A2D is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.7% C 0.072 H 316.3°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#240A2D
RGBrgb(36, 10, 45)
HSLhsl(285, 64%, 11%)
HSVhsv(285, 78%, 18%)
CMYKcmyk(20%, 77.8%, 0%, 82.4%)
CIE-LABlab(7.06, 20.47, -17.57)
CIE-LCHlch(7.06, 26.97, 319.37°)
OKLaboklab(20.74% 0.0518 -0.0494)
OKLCHoklch(20.74% 0.072 316.3)
XYZxyz(1.3097, 0.7817, 2.5640)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A2D #132D0A
analogous
#120A2D #240A2D #2D0A24
triadic
#240A2D #2D240A #0A2D24
tetradic
#240A2D #2D120A #132D0A #0A242D
square
#240A2D #2D120A #132D0A #0A242D
split-complementary
#240A2D #242D0A #0A2D12
monochromatic
#140619 #140619 #240A2D #4C155F #742091

Accessibility & contrast

On white

18.16
#240A2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#240A2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240A2D
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A2D#FFFFFF#000000##FFFFFF
##240A2D1.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02142E
Deuteranopia (green-blind)
#0A162C
Tritanopia (blue-blind)
#24101A
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240a2d;
/* rgb */ color: rgb(36, 10, 45);
/* oklch */ color: oklch(20.7% 0.072 316.3);
Tailwind
colors: {
  custom: {
    50: '#604b66',
    500: '#240a2d',
    950: '#000000',
  },
}
SCSS
$custom: #240a2d;
$custom-light: #604b66;
$custom-dark: #000000;
JSON
{
  "hex": "#240a2d",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 45
  },
  "hsl": {
    "h": 284.571,
    "s": 63.636,
    "l": 10.784
  },
  "oklch": {
    "l": 0.20737,
    "c": 0.07159,
    "h": 316.3
  },
  "luminance": 0.00782
}

Semantic roles & 50–950 ramp

primary
#240A2D
secondary
#3A6A29
accent
#E7416C
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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