#240A2E#240A2E

#240A2E is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.8% C 0.073 H 315.3°. Best body text is #FFFFFF at 18.14:1 contrast (WCAG AA passes).

Color values

HEX#240A2E
RGBrgb(36, 10, 46)
HSLhsl(283, 64%, 11%)
HSVhsv(283, 78%, 18%)
CMYKcmyk(21.7%, 78.3%, 0%, 82%)
CIE-LABlab(7.13, 20.76, -18.20)
CIE-LCHlch(7.13, 27.61, 318.76°)
OKLaboklab(20.82% 0.0518 -0.0513)
OKLCHoklch(20.82% 0.073 315.3)
XYZxyz(1.3292, 0.7895, 2.6666)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A2E #142E0A
analogous
#120A2E #240A2E #2E0A26
triadic
#240A2E #2E240A #0A2E24
tetradic
#240A2E #2E120A #142E0A #0A262E
square
#240A2E #2E120A #142E0A #0A262E
split-complementary
#240A2E #262E0A #0A2E12
monochromatic
#140519 #140519 #240A2E #4B1560 #732093

Accessibility & contrast

On white

18.14
#240A2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240A2E
18.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A2E#FFFFFF#000000##FFFFFF
##240A2E1.0018.141.1618.14
#FFFFFF18.141.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01142F
Deuteranopia (green-blind)
#09162D
Tritanopia (blue-blind)
#23111A
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240a2e;
/* rgb */ color: rgb(36, 10, 46);
/* oklch */ color: oklch(20.8% 0.073 315.3);
Tailwind
colors: {
  custom: {
    50: '#604b67',
    500: '#240a2e',
    950: '#000000',
  },
}
SCSS
$custom: #240a2e;
$custom-light: #604b67;
$custom-dark: #000000;
JSON
{
  "hex": "#240a2e",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 46
  },
  "hsl": {
    "h": 283.333,
    "s": 64.286,
    "l": 10.98
  },
  "oklch": {
    "l": 0.20817,
    "c": 0.07285,
    "h": 315.3
  },
  "luminance": 0.00789
}

Semantic roles & 50–950 ramp

primary
#240A2E
secondary
#3B6B29
accent
#E7416F
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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