#240B2E#240B2E

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

Color values

HEX#240B2E
RGBrgb(36, 11, 46)
HSLhsl(283, 61%, 11%)
HSVhsv(283, 76%, 18%)
CMYKcmyk(21.7%, 76.1%, 0%, 82%)
CIE-LABlab(7.33, 20.23, -17.88)
CIE-LCHlch(7.33, 27.00, 318.53°)
OKLaboklab(20.97% 0.0502 -0.0503)
OKLCHoklch(20.97% 0.071 315)
XYZxyz(1.3403, 0.8117, 2.6703)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B2E #152E0B
analogous
#120B2E #240B2E #2E0B26
triadic
#240B2E #2E240B #0B2E24
tetradic
#240B2E #2E120B #152E0B #0B262E
square
#240B2E #2E120B #152E0B #0B262E
split-complementary
#240B2E #262E0B #0B2E12
monochromatic
#130619 #130619 #240B2E #4B175F #712391

Accessibility & contrast

On white

18.07
#240B2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#240B2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240B2E
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B2E#FFFFFF#000000##FFFFFF
##240B2E1.0018.071.1618.07
#FFFFFF18.071.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02152F
Deuteranopia (green-blind)
#0A172D
Tritanopia (blue-blind)
#23111B
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240b2e;
/* rgb */ color: rgb(36, 11, 46);
/* oklch */ color: oklch(21.0% 0.071 315.0);
Tailwind
colors: {
  custom: {
    50: '#604c67',
    500: '#240b2e',
    950: '#000000',
  },
}
SCSS
$custom: #240b2e;
$custom-light: #604c67;
$custom-dark: #000000;
JSON
{
  "hex": "#240b2e",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 46
  },
  "hsl": {
    "h": 282.857,
    "s": 61.404,
    "l": 11.176
  },
  "oklch": {
    "l": 0.20972,
    "c": 0.07106,
    "h": 315
  },
  "luminance": 0.00812
}

Semantic roles & 50–950 ramp

primary
#240B2E
secondary
#3D6A2A
accent
#E54371
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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