#240E45#240E45

#240E45 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.097 H 296.4°. Best body text is #FFFFFF at 17.16:1 contrast (WCAG AA passes).

Color values

HEX#240E45
RGBrgb(36, 14, 69)
HSLhsl(264, 66%, 16%)
HSVhsv(264, 80%, 27%)
CMYKcmyk(47.8%, 79.7%, 0%, 72.9%)
CIE-LABlab(9.94, 25.25, -30.27)
CIE-LCHlch(9.94, 39.42, 309.83°)
OKLaboklab(23.49% 0.0431 -0.0866)
OKLCHoklch(23.49% 0.097 296.4)
XYZxyz(1.9585, 1.1188, 5.7418)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E45 #2F450E
analogous
#0E1445 #240E45 #400E45
triadic
#240E45 #45240E #0E4524
tetradic
#240E45 #450E14 #2F450E #0E4540
square
#240E45 #450E14 #2F450E #0E4540
split-complementary
#240E45 #45400E #14450E
monochromatic
#0D0519 #0D0519 #240E45 #3F1878 #5923AB

Accessibility & contrast

On white

17.16
#240E45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240E45
17.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E45#FFFFFF#000000##FFFFFF
##240E451.0017.161.2217.16
#FFFFFF17.161.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240e45;
/* rgb */ color: rgb(36, 14, 69);
/* oklch */ color: oklch(23.5% 0.097 296.4);
Tailwind
colors: {
  custom: {
    50: '#634e79',
    500: '#240e45',
    950: '#000000',
  },
}
SCSS
$custom: #240e45;
$custom-light: #634e79;
$custom-dark: #000000;
JSON
{
  "hex": "#240e45",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 69
  },
  "hsl": {
    "h": 264,
    "s": 66.265,
    "l": 16.275
  },
  "oklch": {
    "l": 0.23487,
    "c": 0.09667,
    "h": 296.4
  },
  "luminance": 0.01119
}

Semantic roles & 50–950 ramp

primary
#240E45
secondary
#60802F
accent
#E93FA5
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050209
muted
#7A787B

Preview Lab

Preview with #240E45

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

Preview Lab → · Contrast checker → · Palette generator →

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