#240E4D#240E4D

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

Color values

HEX#240E4D
RGBrgb(36, 14, 77)
HSLhsl(261, 69%, 18%)
HSVhsv(261, 82%, 30%)
CMYKcmyk(53.2%, 81.8%, 0%, 69.8%)
CIE-LABlab(10.74, 27.75, -34.54)
CIE-LCHlch(10.74, 44.31, 308.77°)
OKLaboklab(24.3% 0.041 -0.0991)
OKLCHoklch(24.3% 0.107 292.4)
XYZxyz(2.2238, 1.2249, 7.1390)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E4D #374D0E
analogous
#0E184D #240E4D #430E4D
triadic
#240E4D #4D240E #0E4D24
tetradic
#240E4D #4D0E18 #374D0E #0E4D43
square
#240E4D #4D0E18 #374D0E #0E4D43
split-complementary
#240E4D #4D430E #184D0E
monochromatic
#0C051A #0C051A #240E4D #3C1781 #5421B5

Accessibility & contrast

On white

16.87
#240E4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240E4D
16.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E4D#FFFFFF#000000##FFFFFF
##240E4D1.0016.871.2416.87
#FFFFFF16.871.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4F
Deuteranopia (green-blind)
#001C4C
Tritanopia (blue-blind)
#171F2C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #240e4d;
/* rgb */ color: rgb(36, 14, 77);
/* oklch */ color: oklch(24.3% 0.107 292.4);
Tailwind
colors: {
  custom: {
    50: '#644f7f',
    500: '#240e4d',
    950: '#000000',
  },
}
SCSS
$custom: #240e4d;
$custom-light: #644f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#240e4d",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 77
  },
  "hsl": {
    "h": 260.952,
    "s": 69.231,
    "l": 17.843
  },
  "oklch": {
    "l": 0.24295,
    "c": 0.10724,
    "h": 292.4
  },
  "luminance": 0.01225
}

Semantic roles & 50–950 ramp

primary
#240E4D
secondary
#69882F
accent
#EC3CAE
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #240E4D

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

Preview Lab → · Contrast checker → · Palette generator →

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