#240F2C#240F2C

#240F2C is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.5% C 0.061 H 315.9°. Best body text is #FFFFFF at 17.80:1 contrast (WCAG AA passes).

Color values

HEX#240F2C
RGBrgb(36, 15, 44)
HSLhsl(283, 49%, 12%)
HSVhsv(283, 66%, 17%)
CMYKcmyk(18.2%, 65.9%, 0%, 82.7%)
CIE-LABlab(8.12, 17.22, -15.15)
CIE-LCHlch(8.12, 22.94, 318.67°)
OKLaboklab(21.51% 0.0435 -0.0422)
OKLCHoklch(21.51% 0.061 315.9)
XYZxyz(1.3529, 0.8986, 2.4846)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F2C #172C0F
analogous
#160F2C #240F2C #2C0F26
triadic
#240F2C #2C240F #0F2C24
tetradic
#240F2C #2C160F #172C0F #0F262C
square
#240F2C #2C160F #172C0F #0F262C
split-complementary
#240F2C #262C0F #0F2C16
monochromatic
#130817 #130817 #240F2C #491F5A #6F2E87

Accessibility & contrast

On white

17.80
#240F2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#240F2C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F2C
17.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F2C#FFFFFF#000000##FFFFFF
##240F2C1.0017.801.1817.80
#FFFFFF17.801.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08162D
Deuteranopia (green-blind)
#0F182B
Tritanopia (blue-blind)
#24141B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240f2c;
/* rgb */ color: rgb(36, 15, 44);
/* oklch */ color: oklch(21.5% 0.061 315.9);
Tailwind
colors: {
  custom: {
    50: '#604e65',
    500: '#240f2c',
    950: '#000000',
  },
}
SCSS
$custom: #240f2c;
$custom-light: #604e65;
$custom-dark: #000000;
JSON
{
  "hex": "#240f2c",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 44
  },
  "hsl": {
    "h": 283.448,
    "s": 49.153,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21513,
    "c": 0.06064,
    "h": 315.9
  },
  "luminance": 0.00899
}

Semantic roles & 50–950 ramp

primary
#240F2C
secondary
#406531
accent
#D94F75
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050105
muted
#79777A

Preview Lab

Preview with #240F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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