#240E52#240E52

#240E52 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.114 H 290.3°. Best body text is #FFFFFF at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#240E52
RGBrgb(36, 14, 82)
HSLhsl(259, 71%, 19%)
HSVhsv(259, 83%, 32%)
CMYKcmyk(56.1%, 82.9%, 0%, 67.8%)
CIE-LABlab(11.26, 29.32, -37.13)
CIE-LCHlch(11.26, 47.31, 308.30°)
OKLaboklab(24.82% 0.0394 -0.1067)
OKLCHoklch(24.82% 0.114 290.3)
XYZxyz(2.4071, 1.2982, 8.1048)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E52 #3C520E
analogous
#0E1A52 #240E52 #460E52
triadic
#240E52 #52240E #0E5224
tetradic
#240E52 #520E1A #3C520E #0E5246
square
#240E52 #520E1A #3C520E #0E5246
split-complementary
#240E52 #52460E #1A520E
monochromatic
#0B041A #0D051E #240E52 #3B1786 #5220BB

Accessibility & contrast

On white

16.67
#240E52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#240E52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240E52
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E52#FFFFFF#000000##FFFFFF
##240E521.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F54
Deuteranopia (green-blind)
#001C51
Tritanopia (blue-blind)
#13212F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #240e52;
/* rgb */ color: rgb(36, 14, 82);
/* oklch */ color: oklch(24.8% 0.114 290.3);
Tailwind
colors: {
  custom: {
    50: '#654f83',
    500: '#240e52',
    950: '#000000',
  },
}
SCSS
$custom: #240e52;
$custom-light: #654f83;
$custom-dark: #000000;
JSON
{
  "hex": "#240e52",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 82
  },
  "hsl": {
    "h": 259.412,
    "s": 70.833,
    "l": 18.824
  },
  "oklch": {
    "l": 0.24822,
    "c": 0.11374,
    "h": 290.3
  },
  "luminance": 0.01298
}

Semantic roles & 50–950 ramp

primary
#240E52
secondary
#6E8C2F
accent
#EE3AB4
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240E52

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

Preview Lab → · Contrast checker → · Palette generator →

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