#240D4A#240D4A

#240D4A is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.8% C 0.105 H 294.2°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#240D4A
RGBrgb(36, 13, 74)
HSLhsl(263, 70%, 17%)
HSVhsv(263, 82%, 29%)
CMYKcmyk(51.4%, 82.4%, 0%, 71%)
CIE-LABlab(10.24, 27.36, -33.28)
CIE-LCHlch(10.24, 43.09, 309.43°)
OKLaboklab(23.85% 0.0428 -0.0954)
OKLCHoklch(23.85% 0.105 294.2)
XYZxyz(2.1072, 1.1573, 6.5896)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D4A #334A0D
analogous
#0D154A #240D4A #430D4A
triadic
#240D4A #4A240D #0D4A24
tetradic
#240D4A #4A0D15 #334A0D #0D4A43
square
#240D4A #4A0D15 #334A0D #0D4A43
split-complementary
#240D4A #4A430D #154A0D
monochromatic
#0D051A #0D051A #240D4A #3D167E #571FB2

Accessibility & contrast

On white

17.05
#240D4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#240D4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240D4A
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D4A#FFFFFF#000000##FFFFFF
##240D4A1.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4C
Deuteranopia (green-blind)
#001B49
Tritanopia (blue-blind)
#191D2B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #240d4a;
/* rgb */ color: rgb(36, 13, 74);
/* oklch */ color: oklch(23.8% 0.105 294.2);
Tailwind
colors: {
  custom: {
    50: '#644e7d',
    500: '#240d4a',
    950: '#000000',
  },
}
SCSS
$custom: #240d4a;
$custom-light: #644e7d;
$custom-dark: #000000;
JSON
{
  "hex": "#240d4a",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 74
  },
  "hsl": {
    "h": 262.623,
    "s": 70.115,
    "l": 17.059
  },
  "oklch": {
    "l": 0.23848,
    "c": 0.10458,
    "h": 294.2
  },
  "luminance": 0.01157
}

Semantic roles & 50–950 ramp

primary
#240D4A
secondary
#64852E
accent
#ED3BAA
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #240D4A

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

Preview Lab → · Contrast checker → · Palette generator →

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