#240B2F#240B2F

#240B2F is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.1% C 0.072 H 314.0°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#240B2F
RGBrgb(36, 11, 47)
HSLhsl(282, 62%, 11%)
HSVhsv(282, 77%, 18%)
CMYKcmyk(23.4%, 76.6%, 0%, 81.6%)
CIE-LABlab(7.40, 20.51, -18.51)
CIE-LCHlch(7.40, 27.63, 317.94°)
OKLaboklab(21.05% 0.0502 -0.0521)
OKLCHoklch(21.05% 0.072 314)
XYZxyz(1.3602, 0.8197, 2.7753)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B2F #162F0B
analogous
#120B2F #240B2F #2F0B28
triadic
#240B2F #2F240B #0B2F24
tetradic
#240B2F #2F120B #162F0B #0B282F
square
#240B2F #2F120B #162F0B #0B282F
split-complementary
#240B2F #282F0B #0B2F12
monochromatic
#130619 #130619 #240B2F #4A1761 #702292

Accessibility & contrast

On white

18.04
#240B2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240B2F
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B2F#FFFFFF#000000##FFFFFF
##240B2F1.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011530
Deuteranopia (green-blind)
#09172E
Tritanopia (blue-blind)
#23121B
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240b2f;
/* rgb */ color: rgb(36, 11, 47);
/* oklch */ color: oklch(21.1% 0.072 314.0);
Tailwind
colors: {
  custom: {
    50: '#604c68',
    500: '#240b2f',
    950: '#000000',
  },
}
SCSS
$custom: #240b2f;
$custom-light: #604c68;
$custom-dark: #000000;
JSON
{
  "hex": "#240b2f",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 47
  },
  "hsl": {
    "h": 281.667,
    "s": 62.069,
    "l": 11.373
  },
  "oklch": {
    "l": 0.21052,
    "c": 0.07235,
    "h": 314
  },
  "luminance": 0.0082
}

Semantic roles & 50–950 ramp

primary
#240B2F
secondary
#3E6B2A
accent
#E54374
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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