#240F2E#240F2E

#240F2E is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.7% C 0.063 H 313.6°. Best body text is #FFFFFF at 17.75:1 contrast (WCAG AA passes).

Color values

HEX#240F2E
RGBrgb(36, 15, 46)
HSLhsl(281, 51%, 12%)
HSVhsv(281, 67%, 18%)
CMYKcmyk(21.7%, 67.4%, 0%, 82%)
CIE-LABlab(8.25, 17.77, -16.41)
CIE-LCHlch(8.25, 24.19, 317.27°)
OKLaboklab(21.66% 0.0437 -0.0459)
OKLCHoklch(21.66% 0.063 313.6)
XYZxyz(1.3914, 0.9140, 2.6874)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F2E #192E0F
analogous
#150F2E #240F2E #2E0F29
triadic
#240F2E #2E240F #0F2E24
tetradic
#240F2E #2E150F #192E0F #0F292E
square
#240F2E #2E150F #192E0F #0F292E
split-complementary
#240F2E #292E0F #0F2E15
monochromatic
#120817 #120817 #240F2E #481E5C #6C2D8A

Accessibility & contrast

On white

17.75
#240F2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240F2E
17.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F2E#FFFFFF#000000##FFFFFF
##240F2E1.0017.751.1817.75
#FFFFFF17.751.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07172F
Deuteranopia (green-blind)
#0E192D
Tritanopia (blue-blind)
#23141C
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240f2e;
/* rgb */ color: rgb(36, 15, 46);
/* oklch */ color: oklch(21.7% 0.063 313.6);
Tailwind
colors: {
  custom: {
    50: '#604e67',
    500: '#240f2e',
    950: '#000000',
  },
}
SCSS
$custom: #240f2e;
$custom-light: #604e67;
$custom-dark: #000000;
JSON
{
  "hex": "#240f2e",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 46
  },
  "hsl": {
    "h": 280.645,
    "s": 50.82,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21658,
    "c": 0.0634,
    "h": 313.6
  },
  "luminance": 0.00914
}

Semantic roles & 50–950 ramp

primary
#240F2E
secondary
#436831
accent
#DA4D7B
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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