#240D41#240D41

#240D41 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.093 H 299.1°. Best body text is #FFFFFF at 17.37:1 contrast (WCAG AA passes).

Color values

HEX#240D41
RGBrgb(36, 13, 65)
HSLhsl(267, 67%, 15%)
HSVhsv(267, 80%, 25%)
CMYKcmyk(44.6%, 80%, 0%, 74.5%)
CIE-LABlab(9.36, 24.60, -28.40)
CIE-LCHlch(9.36, 37.58, 310.90°)
OKLaboklab(22.95% 0.0451 -0.0811)
OKLCHoklch(22.95% 0.093 299.1)
XYZxyz(1.8254, 1.0445, 5.1054)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D41 #2A410D
analogous
#0D1041 #240D41 #3E0D41
triadic
#240D41 #41240D #0D4124
tetradic
#240D41 #410D10 #2A410D #0D413E
square
#240D41 #410D10 #2A410D #0D413E
split-complementary
#240D41 #413E0D #10410D
monochromatic
#0E051A #0E051A #240D41 #401774 #5C21A7

Accessibility & contrast

On white

17.37
#240D41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240D41
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D41#FFFFFF#000000##FFFFFF
##240D411.0017.371.2117.37
#FFFFFF17.371.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A43
Deuteranopia (green-blind)
#001A40
Tritanopia (blue-blind)
#1D1A25
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240d41;
/* rgb */ color: rgb(36, 13, 65);
/* oklch */ color: oklch(23.0% 0.093 299.1);
Tailwind
colors: {
  custom: {
    50: '#624e76',
    500: '#240d41',
    950: '#000000',
  },
}
SCSS
$custom: #240d41;
$custom-light: #624e76;
$custom-dark: #000000;
JSON
{
  "hex": "#240d41",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 65
  },
  "hsl": {
    "h": 266.538,
    "s": 66.667,
    "l": 15.294
  },
  "oklch": {
    "l": 0.22951,
    "c": 0.09278,
    "h": 299.1
  },
  "luminance": 0.01045
}

Semantic roles & 50–950 ramp

primary
#240D41
secondary
#597D2D
accent
#EA3E9E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #240D41

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

Preview Lab → · Contrast checker → · Palette generator →

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