#240D34#240D34

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

Color values

HEX#240D34
RGBrgb(36, 13, 52)
HSLhsl(275, 60%, 13%)
HSVhsv(275, 75%, 20%)
CMYKcmyk(30.8%, 75%, 0%, 79.6%)
CIE-LABlab(8.23, 20.75, -20.87)
CIE-LCHlch(8.23, 29.43, 314.83°)
OKLaboklab(21.78% 0.047 -0.0589)
OKLCHoklch(21.78% 0.075 308.6)
XYZxyz(1.4912, 0.9109, 3.3454)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D34 #1D340D
analogous
#110D34 #240D34 #340D30
triadic
#240D34 #34240D #0D3424
tetradic
#240D34 #34110D #1D340D #0D3034
square
#240D34 #34110D #1D340D #0D3034
split-complementary
#240D34 #30340D #0D3411
monochromatic
#110618 #110618 #240D34 #461965 #682596

Accessibility & contrast

On white

17.76
#240D34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240D34
17.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D34#FFFFFF#000000##FFFFFF
##240D341.0017.761.1817.76
#FFFFFF17.761.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001735
Deuteranopia (green-blind)
#071833
Tritanopia (blue-blind)
#22151E
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240d34;
/* rgb */ color: rgb(36, 13, 52);
/* oklch */ color: oklch(21.8% 0.075 308.6);
Tailwind
colors: {
  custom: {
    50: '#604d6c',
    500: '#240d34',
    950: '#000000',
  },
}
SCSS
$custom: #240d34;
$custom-light: #604d6c;
$custom-dark: #000000;
JSON
{
  "hex": "#240d34",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 52
  },
  "hsl": {
    "h": 275.385,
    "s": 60,
    "l": 12.745
  },
  "oklch": {
    "l": 0.21782,
    "c": 0.07537,
    "h": 308.6
  },
  "luminance": 0.00911
}

Semantic roles & 50–950 ramp

primary
#240D34
secondary
#486F2D
accent
#E34586
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240D34

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

Preview Lab → · Contrast checker → · Palette generator →

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