#240C2F#240C2F

#240C2F is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.2% C 0.071 H 313.6°. Best body text is #FFFFFF at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#240C2F
RGBrgb(36, 12, 47)
HSLhsl(281, 59%, 12%)
HSVhsv(281, 74%, 18%)
CMYKcmyk(23.4%, 74.5%, 0%, 81.6%)
CIE-LABlab(7.62, 19.94, -18.17)
CIE-LCHlch(7.62, 26.98, 317.67°)
OKLaboklab(21.21% 0.0487 -0.051)
OKLCHoklch(21.21% 0.071 313.6)
XYZxyz(1.3720, 0.8433, 2.7793)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C2F #172F0C
analogous
#130C2F #240C2F #2F0C29
triadic
#240C2F #2F240C #0C2F24
tetradic
#240C2F #2F130C #172F0C #0C292F
square
#240C2F #2F130C #172F0C #0C292F
split-complementary
#240C2F #292F0C #0C2F13
monochromatic
#130618 #130618 #240C2F #491860 #6F2591

Accessibility & contrast

On white

17.97
#240C2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240C2F
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C2F#FFFFFF#000000##FFFFFF
##240C2F1.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021530
Deuteranopia (green-blind)
#0A172E
Tritanopia (blue-blind)
#23121B
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240c2f;
/* rgb */ color: rgb(36, 12, 47);
/* oklch */ color: oklch(21.2% 0.071 313.6);
Tailwind
colors: {
  custom: {
    50: '#604c68',
    500: '#240c2f',
    950: '#000000',
  },
}
SCSS
$custom: #240c2f;
$custom-light: #604c68;
$custom-dark: #000000;
JSON
{
  "hex": "#240c2f",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 47
  },
  "hsl": {
    "h": 281.143,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21213,
    "c": 0.07053,
    "h": 313.6
  },
  "luminance": 0.00843
}

Semantic roles & 50–950 ramp

primary
#240C2F
secondary
#406B2C
accent
#E34577
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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