#240E42#240E42

#240E42 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.2% C 0.093 H 298.1°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#240E42
RGBrgb(36, 14, 66)
HSLhsl(265, 65%, 16%)
HSVhsv(265, 79%, 26%)
CMYKcmyk(45.5%, 78.8%, 0%, 74.1%)
CIE-LABlab(9.66, 24.32, -28.61)
CIE-LCHlch(9.66, 37.55, 310.36°)
OKLaboklab(23.2% 0.0437 -0.0817)
OKLCHoklch(23.2% 0.093 298.1)
XYZxyz(1.8677, 1.0825, 5.2637)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E42 #2C420E
analogous
#0E1242 #240E42 #3E0E42
triadic
#240E42 #42240E #0E4224
tetradic
#240E42 #420E12 #2C420E #0E423E
square
#240E42 #420E12 #2C420E #0E423E
split-complementary
#240E42 #423E0E #12420E
monochromatic
#0E0519 #0E0519 #240E42 #401974 #5B23A7

Accessibility & contrast

On white

17.26
#240E42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#240E42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240E42
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E42#FFFFFF#000000##FFFFFF
##240E421.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B44
Deuteranopia (green-blind)
#001A41
Tritanopia (blue-blind)
#1D1B26
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #240e42;
/* rgb */ color: rgb(36, 14, 66);
/* oklch */ color: oklch(23.2% 0.093 298.1);
Tailwind
colors: {
  custom: {
    50: '#624e77',
    500: '#240e42',
    950: '#000000',
  },
}
SCSS
$custom: #240e42;
$custom-light: #624e77;
$custom-dark: #000000;
JSON
{
  "hex": "#240e42",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 66
  },
  "hsl": {
    "h": 265.385,
    "s": 65,
    "l": 15.686
  },
  "oklch": {
    "l": 0.23196,
    "c": 0.09265,
    "h": 298.1
  },
  "luminance": 0.01082
}

Semantic roles & 50–950 ramp

primary
#240E42
secondary
#5C7D2F
accent
#E840A1
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050208
muted
#7A787B

Preview Lab

Preview with #240E42

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

Preview Lab → · Contrast checker → · Palette generator →

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