#240D4C#240D4C

#240D4C is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.107 H 293.2°. Best body text is #FFFFFF at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#240D4C
RGBrgb(36, 13, 76)
HSLhsl(262, 71%, 17%)
HSVhsv(262, 83%, 30%)
CMYKcmyk(52.6%, 82.9%, 0%, 70.2%)
CIE-LABlab(10.44, 27.99, -34.34)
CIE-LCHlch(10.44, 44.30, 309.18°)
OKLaboklab(24.06% 0.0422 -0.0985)
OKLCHoklch(24.06% 0.107 293.2)
XYZxyz(2.1756, 1.1846, 6.9501)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D4C #354C0D
analogous
#0D154C #240D4C #440D4C
triadic
#240D4C #4C240D #0D4C24
tetradic
#240D4C #4C0D15 #354C0D #0D4C44
square
#240D4C #4C0D15 #354C0D #0D4C44
split-complementary
#240D4C #4C440D #154C0D
monochromatic
#0C041A #0C041A #240D4C #3D1680 #561FB5

Accessibility & contrast

On white

16.98
#240D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#240D4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240D4C
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D4C#FFFFFF#000000##FFFFFF
##240D4C1.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4E
Deuteranopia (green-blind)
#001B4B
Tritanopia (blue-blind)
#181E2C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #240d4c;
/* rgb */ color: rgb(36, 13, 76);
/* oklch */ color: oklch(24.1% 0.107 293.2);
Tailwind
colors: {
  custom: {
    50: '#644e7f',
    500: '#240d4c',
    950: '#000000',
  },
}
SCSS
$custom: #240d4c;
$custom-light: #644e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#240d4c",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 76
  },
  "hsl": {
    "h": 261.905,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.24055,
    "c": 0.10717,
    "h": 293.2
  },
  "luminance": 0.01185
}

Semantic roles & 50–950 ramp

primary
#240D4C
secondary
#66872E
accent
#EE3AAC
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #240D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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