#240E4B#240E4B

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

Color values

HEX#240E4B
RGBrgb(36, 14, 75)
HSLhsl(262, 69%, 17%)
HSVhsv(262, 81%, 29%)
CMYKcmyk(52%, 81.3%, 0%, 70.6%)
CIE-LABlab(10.54, 27.12, -33.49)
CIE-LCHlch(10.54, 43.10, 309.00°)
OKLaboklab(24.09% 0.0415 -0.096)
OKLCHoklch(24.09% 0.105 293.4)
XYZxyz(2.1542, 1.1971, 6.7728)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E4B #354B0E
analogous
#0E174B #240E4B #420E4B
triadic
#240E4B #4B240E #0E4B24
tetradic
#240E4B #4B0E17 #354B0E #0E4B42
square
#240E4B #4B0E17 #354B0E #0E4B42
split-complementary
#240E4B #4B420E #174B0E
monochromatic
#0C051A #0C051A #240E4B #3D187F #5621B2

Accessibility & contrast

On white

16.94
#240E4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240E4B
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E4B#FFFFFF#000000##FFFFFF
##240E4B1.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4D
Deuteranopia (green-blind)
#001B4A
Tritanopia (blue-blind)
#181E2B
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #240e4b;
/* rgb */ color: rgb(36, 14, 75);
/* oklch */ color: oklch(24.1% 0.105 293.4);
Tailwind
colors: {
  custom: {
    50: '#644f7e',
    500: '#240e4b',
    950: '#000000',
  },
}
SCSS
$custom: #240e4b;
$custom-light: #644f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#240e4b",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 75
  },
  "hsl": {
    "h": 261.639,
    "s": 68.539,
    "l": 17.451
  },
  "oklch": {
    "l": 0.24088,
    "c": 0.10462,
    "h": 293.4
  },
  "luminance": 0.01197
}

Semantic roles & 50–950 ramp

primary
#240E4B
secondary
#66862F
accent
#EB3CAC
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #240E4B

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

Preview Lab → · Contrast checker → · Palette generator →

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