#240D44#240D44

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

Color values

HEX#240D44
RGBrgb(36, 13, 68)
HSLhsl(265, 68%, 16%)
HSVhsv(265, 81%, 27%)
CMYKcmyk(47.1%, 80.9%, 0%, 73.3%)
CIE-LABlab(9.64, 25.52, -30.06)
CIE-LCHlch(9.64, 39.43, 310.33°)
OKLaboklab(23.24% 0.0444 -0.0859)
OKLCHoklch(23.24% 0.097 297.3)
XYZxyz(1.9146, 1.0802, 5.5754)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D44 #2D440D
analogous
#0D1144 #240D44 #3F0D44
triadic
#240D44 #44240D #0D4424
tetradic
#240D44 #440D11 #2D440D #0D443F
square
#240D44 #440D11 #2D440D #0D443F
split-complementary
#240D44 #443F0D #11440D
monochromatic
#0E051A #0E051A #240D44 #3F1777 #5A21AB

Accessibility & contrast

On white

17.27
#240D44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240D44
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D44#FFFFFF#000000##FFFFFF
##240D441.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B46
Deuteranopia (green-blind)
#001A43
Tritanopia (blue-blind)
#1C1B27
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #240d44;
/* rgb */ color: rgb(36, 13, 68);
/* oklch */ color: oklch(23.2% 0.097 297.3);
Tailwind
colors: {
  custom: {
    50: '#634e78',
    500: '#240d44',
    950: '#000000',
  },
}
SCSS
$custom: #240d44;
$custom-light: #634e78;
$custom-dark: #000000;
JSON
{
  "hex": "#240d44",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 68
  },
  "hsl": {
    "h": 265.091,
    "s": 67.901,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23243,
    "c": 0.09673,
    "h": 297.3
  },
  "luminance": 0.0108
}

Semantic roles & 50–950 ramp

primary
#240D44
secondary
#5D7F2D
accent
#EB3DA2
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #240D44

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

Preview Lab → · Contrast checker → · Palette generator →

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