#240A2F#240A2F

#240A2F is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.9% C 0.074 H 314.3°. Best body text is #FFFFFF at 18.11:1 contrast (WCAG AA passes).

Color values

HEX#240A2F
RGBrgb(36, 10, 47)
HSLhsl(282, 65%, 11%)
HSVhsv(282, 79%, 18%)
CMYKcmyk(23.4%, 78.7%, 0%, 81.6%)
CIE-LABlab(7.20, 21.05, -18.83)
CIE-LCHlch(7.20, 28.24, 318.19°)
OKLaboklab(20.9% 0.0517 -0.0531)
OKLCHoklch(20.9% 0.074 314.3)
XYZxyz(1.3491, 0.7974, 2.7716)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A2F #152F0A
analogous
#110A2F #240A2F #2F0A27
triadic
#240A2F #2F240A #0A2F24
tetradic
#240A2F #2F110A #152F0A #0A272F
square
#240A2F #2F110A #152F0A #0A272F
split-complementary
#240A2F #272F0A #0A2F11
monochromatic
#130519 #130519 #240A2F #4B1561 #711F94

Accessibility & contrast

On white

18.11
#240A2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240A2F
18.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A2F#FFFFFF#000000##FFFFFF
##240A2F1.0018.111.1618.11
#FFFFFF18.111.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001430
Deuteranopia (green-blind)
#09172E
Tritanopia (blue-blind)
#23111B
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240a2f;
/* rgb */ color: rgb(36, 10, 47);
/* oklch */ color: oklch(20.9% 0.074 314.3);
Tailwind
colors: {
  custom: {
    50: '#604b68',
    500: '#240a2f',
    950: '#000000',
  },
}
SCSS
$custom: #240a2f;
$custom-light: #604b68;
$custom-dark: #000000;
JSON
{
  "hex": "#240a2f",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 47
  },
  "hsl": {
    "h": 282.162,
    "s": 64.912,
    "l": 11.176
  },
  "oklch": {
    "l": 0.20897,
    "c": 0.0741,
    "h": 314.3
  },
  "luminance": 0.00797
}

Semantic roles & 50–950 ramp

primary
#240A2F
secondary
#3D6C29
accent
#E84072
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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