#240D46#240D46

#240D46 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.099 H 296.2°. Best body text is #FFFFFF at 17.20:1 contrast (WCAG AA passes).

Color values

HEX#240D46
RGBrgb(36, 13, 70)
HSLhsl(264, 69%, 16%)
HSVhsv(264, 81%, 27%)
CMYKcmyk(48.6%, 81.4%, 0%, 72.5%)
CIE-LABlab(9.84, 26.13, -31.14)
CIE-LCHlch(9.84, 40.65, 310.00°)
OKLaboklab(23.44% 0.0439 -0.0891)
OKLCHoklch(23.44% 0.099 296.2)
XYZxyz(1.9767, 1.1051, 5.9023)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D46 #2F460D
analogous
#0D1346 #240D46 #410D46
triadic
#240D46 #46240D #0D4624
tetradic
#240D46 #460D13 #2F460D #0D4641
square
#240D46 #460D13 #2F460D #0D4641
split-complementary
#240D46 #46410D #13460D
monochromatic
#0D051A #0D051A #240D46 #3F177A #5920AD

Accessibility & contrast

On white

17.20
#240D46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240D46
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D46#FFFFFF#000000##FFFFFF
##240D461.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240d46;
/* rgb */ color: rgb(36, 13, 70);
/* oklch */ color: oklch(23.4% 0.099 296.2);
Tailwind
colors: {
  custom: {
    50: '#634e7a',
    500: '#240d46',
    950: '#000000',
  },
}
SCSS
$custom: #240d46;
$custom-light: #634e7a;
$custom-dark: #000000;
JSON
{
  "hex": "#240d46",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 70
  },
  "hsl": {
    "h": 264.211,
    "s": 68.675,
    "l": 16.275
  },
  "oklch": {
    "l": 0.23441,
    "c": 0.09936,
    "h": 296.2
  },
  "luminance": 0.01105
}

Semantic roles & 50–950 ramp

primary
#240D46
secondary
#60812D
accent
#EC3CA5
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #240D46

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

Preview Lab → · Contrast checker → · Palette generator →

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