#240F28#240F28

#240F28 is a very dark, muted purple. Relative luminance 0.009; OKLCH L 21.2% C 0.055 H 321.0°. Best body text is #FFFFFF at 17.89:1 contrast (WCAG AA passes).

Color values

HEX#240F28
RGBrgb(36, 15, 40)
HSLhsl(290, 45%, 11%)
HSVhsv(290, 63%, 16%)
CMYKcmyk(10%, 62.5%, 0%, 84.3%)
CIE-LABlab(7.86, 16.16, -12.56)
CIE-LCHlch(7.86, 20.47, 322.14°)
OKLaboklab(21.24% 0.043 -0.0347)
OKLCHoklch(21.24% 0.055 321)
XYZxyz(1.2813, 0.8700, 2.1075)
Luminance0.0087 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F28 #13280F
analogous
#170F28 #240F28 #280F1F
triadic
#240F28 #28240F #0F2824
tetradic
#240F28 #28170F #13280F #0F1F28
square
#240F28 #28170F #13280F #0F1F28
split-complementary
#240F28 #1F280F #0F2817
monochromatic
#140816 #140816 #240F28 #4C2055 #743081

Accessibility & contrast

On white

17.89
#240F28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240F28
17.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F28#FFFFFF#000000##FFFFFF
##240F281.0017.891.1717.89
#FFFFFF17.891.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1629
Deuteranopia (green-blind)
#111827
Tritanopia (blue-blind)
#241219
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240f28;
/* rgb */ color: rgb(36, 15, 40);
/* oklch */ color: oklch(21.2% 0.055 321.0);
Tailwind
colors: {
  custom: {
    50: '#5f4e62',
    500: '#240f28',
    950: '#000000',
  },
}
SCSS
$custom: #240f28;
$custom-light: #5f4e62;
$custom-dark: #000000;
JSON
{
  "hex": "#240f28",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 40
  },
  "hsl": {
    "h": 290.4,
    "s": 45.455,
    "l": 10.784
  },
  "oklch": {
    "l": 0.21237,
    "c": 0.05524,
    "h": 321
  },
  "luminance": 0.0087
}

Semantic roles & 50–950 ramp

primary
#240F28
secondary
#3A6132
accent
#D55368
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#050105
muted
#797779

Preview Lab

Preview with #240F28

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

Preview Lab → · Contrast checker → · Palette generator →

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