#240E4A#240E4A

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

Color values

HEX#240E4A
RGBrgb(36, 14, 74)
HSLhsl(262, 68%, 17%)
HSVhsv(262, 81%, 29%)
CMYKcmyk(51.4%, 81.1%, 0%, 71%)
CIE-LABlab(10.44, 26.81, -32.96)
CIE-LCHlch(10.44, 42.49, 309.12°)
OKLaboklab(23.99% 0.0418 -0.0945)
OKLCHoklch(23.99% 0.103 293.9)
XYZxyz(2.1203, 1.1835, 6.5940)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E4A #344A0E
analogous
#0E164A #240E4A #420E4A
triadic
#240E4A #4A240E #0E4A24
tetradic
#240E4A #4A0E16 #344A0E #0E4A42
square
#240E4A #4A0E16 #344A0E #0E4A42
split-complementary
#240E4A #4A420E #164A0E
monochromatic
#0D051A #0D051A #240E4A #3D187D #5621B1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##240E4A#FFFFFF#000000##FFFFFF
##240E4A1.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)
#001D4C
Deuteranopia (green-blind)
#001B49
Tritanopia (blue-blind)
#191E2B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #240e4a;
/* rgb */ color: rgb(36, 14, 74);
/* oklch */ color: oklch(24.0% 0.103 293.9);
Tailwind
colors: {
  custom: {
    50: '#634f7d',
    500: '#240e4a',
    950: '#000000',
  },
}
SCSS
$custom: #240e4a;
$custom-light: #634f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#240e4a",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 74
  },
  "hsl": {
    "h": 262,
    "s": 68.182,
    "l": 17.255
  },
  "oklch": {
    "l": 0.23986,
    "c": 0.1033,
    "h": 293.9
  },
  "luminance": 0.01184
}

Semantic roles & 50–950 ramp

primary
#240E4A
secondary
#65852F
accent
#EB3DAB
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #240E4A

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

Preview Lab → · Contrast checker → · Palette generator →

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