#240E32#240E32

#240E32 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.8% C 0.071 H 310.0°. Best body text is #FFFFFF at 17.74:1 contrast (WCAG AA passes).

Color values

HEX#240E32
RGBrgb(36, 14, 50)
HSLhsl(277, 56%, 13%)
HSVhsv(277, 72%, 20%)
CMYKcmyk(28%, 72%, 0%, 80.4%)
CIE-LABlab(8.30, 19.55, -19.29)
CIE-LCHlch(8.30, 27.46, 315.39°)
OKLaboklab(21.79% 0.0455 -0.0543)
OKLCHoklch(21.79% 0.071 310)
XYZxyz(1.4602, 0.9195, 3.1175)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E32 #1C320E
analogous
#120E32 #240E32 #320E2E
triadic
#240E32 #32240E #0E3224
tetradic
#240E32 #32120E #1C320E #0E2E32
square
#240E32 #32120E #1C320E #0E2E32
split-complementary
#240E32 #2E320E #0E3212
monochromatic
#110718 #110718 #240E32 #461B62 #692992

Accessibility & contrast

On white

17.74
#240E32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240E32
17.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E32#FFFFFF#000000##FFFFFF
##240E321.0017.741.1817.74
#FFFFFF17.741.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031733
Deuteranopia (green-blind)
#0A1831
Tritanopia (blue-blind)
#22151E
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240e32;
/* rgb */ color: rgb(36, 14, 50);
/* oklch */ color: oklch(21.8% 0.071 310.0);
Tailwind
colors: {
  custom: {
    50: '#604d6a',
    500: '#240e32',
    950: '#000000',
  },
}
SCSS
$custom: #240e32;
$custom-light: #604d6a;
$custom-dark: #000000;
JSON
{
  "hex": "#240e32",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 50
  },
  "hsl": {
    "h": 276.667,
    "s": 56.25,
    "l": 12.549
  },
  "oklch": {
    "l": 0.21787,
    "c": 0.07085,
    "h": 310
  },
  "luminance": 0.00919
}

Semantic roles & 50–950 ramp

primary
#240E32
secondary
#476D2F
accent
#E04883
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240E32

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

Preview Lab → · Contrast checker → · Palette generator →

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