#240E41#240E41

#240E41 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.1% C 0.091 H 298.7°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#240E41
RGBrgb(36, 14, 65)
HSLhsl(266, 65%, 15%)
HSVhsv(266, 78%, 25%)
CMYKcmyk(44.6%, 78.5%, 0%, 74.5%)
CIE-LABlab(9.57, 24.01, -28.06)
CIE-LCHlch(9.57, 36.93, 310.56°)
OKLaboklab(23.1% 0.0439 -0.0801)
OKLCHoklch(23.1% 0.091 298.7)
XYZxyz(1.8385, 1.0708, 5.1098)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E41 #2B410E
analogous
#0E1241 #240E41 #3D0E41
triadic
#240E41 #41240E #0E4124
tetradic
#240E41 #410E12 #2B410E #0E413D
square
#240E41 #410E12 #2B410E #0E413D
split-complementary
#240E41 #413D0E #12410E
monochromatic
#0E0519 #0E0519 #240E41 #401973 #5C24A6

Accessibility & contrast

On white

17.30
#240E41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#240E41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240E41
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E41#FFFFFF#000000##FFFFFF
##240E411.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B43
Deuteranopia (green-blind)
#001A40
Tritanopia (blue-blind)
#1D1A26
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #240e41;
/* rgb */ color: rgb(36, 14, 65);
/* oklch */ color: oklch(23.1% 0.091 298.7);
Tailwind
colors: {
  custom: {
    50: '#624e76',
    500: '#240e41',
    950: '#000000',
  },
}
SCSS
$custom: #240e41;
$custom-light: #624e76;
$custom-dark: #000000;
JSON
{
  "hex": "#240e41",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 65
  },
  "hsl": {
    "h": 265.882,
    "s": 64.557,
    "l": 15.49
  },
  "oklch": {
    "l": 0.23101,
    "c": 0.09131,
    "h": 298.7
  },
  "luminance": 0.01071
}

Semantic roles & 50–950 ramp

primary
#240E41
secondary
#5B7C2F
accent
#E8409F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050208
muted
#7A787B

Preview Lab

Preview with #240E41

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

Preview Lab → · Contrast checker → · Palette generator →

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