#240E59#240E59

#240E59 is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.6% C 0.123 H 287.6°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#240E59
RGBrgb(36, 14, 89)
HSLhsl(258, 73%, 20%)
HSVhsv(258, 84%, 35%)
CMYKcmyk(59.6%, 84.3%, 0%, 65.1%)
CIE-LABlab(12.03, 31.52, -40.63)
CIE-LCHlch(12.03, 51.42, 307.80°)
OKLaboklab(25.59% 0.0371 -0.1169)
OKLCHoklch(25.59% 0.123 287.6)
XYZxyz(2.6872, 1.4103, 9.5799)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E59 #43590E
analogous
#0E1D59 #240E59 #490E59
triadic
#240E59 #59240E #0E5924
tetradic
#240E59 #590E1D #43590E #0E5949
square
#240E59 #590E1D #43590E #0E5949
split-complementary
#240E59 #59490E #1D590E
monochromatic
#0B041A #0F0624 #240E59 #39168E #4F1FC3

Accessibility & contrast

On white

16.38
#240E59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#240E59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240E59
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E59#FFFFFF#000000##FFFFFF
##240E591.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215B
Deuteranopia (green-blind)
#001D58
Tritanopia (blue-blind)
#0D2433
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #240e59;
/* rgb */ color: rgb(36, 14, 89);
/* oklch */ color: oklch(25.6% 0.123 287.6);
Tailwind
colors: {
  custom: {
    50: '#665089',
    500: '#240e59',
    950: '#000000',
  },
}
SCSS
$custom: #240e59;
$custom-light: #665089;
$custom-dark: #000000;
JSON
{
  "hex": "#240e59",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 89
  },
  "hsl": {
    "h": 257.6,
    "s": 72.816,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25586,
    "c": 0.12269,
    "h": 287.6
  },
  "luminance": 0.0141
}

Semantic roles & 50–950 ramp

primary
#240E59
secondary
#769330
accent
#F038BA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240E59

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

Preview Lab → · Contrast checker → · Palette generator →

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