#240D4F#240D4F

#240D4F is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.4% C 0.111 H 291.8°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#240D4F
RGBrgb(36, 13, 79)
HSLhsl(261, 72%, 18%)
HSVhsv(261, 84%, 31%)
CMYKcmyk(54.4%, 83.5%, 0%, 69%)
CIE-LABlab(10.76, 28.92, -35.90)
CIE-LCHlch(10.76, 46.10, 308.86°)
OKLaboklab(24.37% 0.0413 -0.1031)
OKLCHoklch(24.37% 0.111 291.8)
XYZxyz(2.2824, 1.2273, 7.5123)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D4F #384F0D
analogous
#0D174F #240D4F #450D4F
triadic
#240D4F #4F240D #0D4F24
tetradic
#240D4F #4F0D17 #384F0D #0D4F45
square
#240D4F #4F0D17 #384F0D #0D4F45
split-complementary
#240D4F #4F450D #174F0D
monochromatic
#0C041A #0C041A #240D4F #3C1684 #541EB8

Accessibility & contrast

On white

16.86
#240D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#240D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240D4F
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D4F#FFFFFF#000000##FFFFFF
##240D4F1.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E51
Deuteranopia (green-blind)
#001C4E
Tritanopia (blue-blind)
#161F2D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #240d4f;
/* rgb */ color: rgb(36, 13, 79);
/* oklch */ color: oklch(24.4% 0.111 291.8);
Tailwind
colors: {
  custom: {
    50: '#644e81',
    500: '#240d4f',
    950: '#000000',
  },
}
SCSS
$custom: #240d4f;
$custom-light: #644e81;
$custom-dark: #000000;
JSON
{
  "hex": "#240d4f",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 260.909,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.24371,
    "c": 0.11103,
    "h": 291.8
  },
  "luminance": 0.01227
}

Semantic roles & 50–950 ramp

primary
#240D4F
secondary
#6A8A2E
accent
#EE39AF
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #240D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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