#240F29#240F29

#240F29 is a very dark, muted purple. Relative luminance 0.009; OKLCH L 21.3% C 0.057 H 319.7°. Best body text is #FFFFFF at 17.87:1 contrast (WCAG AA passes).

Color values

HEX#240F29
RGBrgb(36, 15, 41)
HSLhsl(288, 46%, 11%)
HSVhsv(288, 63%, 16%)
CMYKcmyk(12.2%, 63.4%, 0%, 83.9%)
CIE-LABlab(7.92, 16.42, -13.22)
CIE-LCHlch(7.92, 21.08, 321.18°)
OKLaboklab(21.3% 0.0431 -0.0366)
OKLCHoklch(21.3% 0.057 319.7)
XYZxyz(1.2986, 0.8769, 2.1982)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F29 #14290F
analogous
#170F29 #240F29 #290F21
triadic
#240F29 #29240F #0F2924
tetradic
#240F29 #29170F #14290F #0F2129
square
#240F29 #29170F #14290F #0F2129
split-complementary
#240F29 #21290F #0F2917
monochromatic
#140816 #140816 #240F29 #4B1F56 #733083

Accessibility & contrast

On white

17.87
#240F29 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240F29
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F29#FFFFFF#000000##FFFFFF
##240F291.0017.871.1817.87
#FFFFFF17.871.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A162A
Deuteranopia (green-blind)
#111828
Tritanopia (blue-blind)
#24131A
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240f29;
/* rgb */ color: rgb(36, 15, 41);
/* oklch */ color: oklch(21.3% 0.057 319.7);
Tailwind
colors: {
  custom: {
    50: '#5f4e62',
    500: '#240f29',
    950: '#000000',
  },
}
SCSS
$custom: #240f29;
$custom-light: #5f4e62;
$custom-dark: #000000;
JSON
{
  "hex": "#240f29",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 41
  },
  "hsl": {
    "h": 288.462,
    "s": 46.429,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21304,
    "c": 0.05657,
    "h": 319.7
  },
  "luminance": 0.00877
}

Semantic roles & 50–950 ramp

primary
#240F29
secondary
#3B6232
accent
#D6526B
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#050105
muted
#797779

Preview Lab

Preview with #240F29

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

Preview Lab → · Contrast checker → · Palette generator →

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