#240A2A#240A2A

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

Color values

HEX#240A2A
RGBrgb(36, 10, 42)
HSLhsl(289, 62%, 10%)
HSVhsv(289, 76%, 16%)
CMYKcmyk(14.3%, 76.2%, 0%, 83.5%)
CIE-LABlab(6.86, 19.61, -15.64)
CIE-LCHlch(6.86, 25.08, 321.44°)
OKLaboklab(20.51% 0.0518 -0.0439)
OKLCHoklch(20.51% 0.068 319.7)
XYZxyz(1.2540, 0.7594, 2.2706)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A2A #102A0A
analogous
#140A2A #240A2A #2A0A20
triadic
#240A2A #2A240A #0A2A24
tetradic
#240A2A #2A140A #102A0A #0A202A
square
#240A2A #2A140A #102A0A #0A202A
split-complementary
#240A2A #202A0A #0A2A14
monochromatic
#150619 #150619 #240A2A #4E165B #79228D

Accessibility & contrast

On white

18.23
#240A2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#240A2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240A2A
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A2A#FFFFFF#000000##FFFFFF
##240A2A1.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04132B
Deuteranopia (green-blind)
#0C1629
Tritanopia (blue-blind)
#240F18
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #240a2a;
/* rgb */ color: rgb(36, 10, 42);
/* oklch */ color: oklch(20.5% 0.068 319.7);
Tailwind
colors: {
  custom: {
    50: '#604b63',
    500: '#240a2a',
    950: '#000000',
  },
}
SCSS
$custom: #240a2a;
$custom-light: #604b63;
$custom-dark: #000000;
JSON
{
  "hex": "#240a2a",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 42
  },
  "hsl": {
    "h": 288.75,
    "s": 61.538,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20506,
    "c": 0.06787,
    "h": 319.7
  },
  "luminance": 0.00759
}

Semantic roles & 50–950 ramp

primary
#240A2A
secondary
#356729
accent
#E54361
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#050105
muted
#797779

Preview Lab

Preview with #240A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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