#240B44#240B44

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

Color values

HEX#240B44
RGBrgb(36, 11, 68)
HSLhsl(266, 72%, 15%)
HSVhsv(266, 84%, 27%)
CMYKcmyk(47.1%, 83.8%, 0%, 73.3%)
CIE-LABlab(9.25, 26.62, -30.69)
CIE-LCHlch(9.25, 40.63, 310.93°)
OKLaboklab(22.97% 0.0466 -0.0878)
OKLCHoklch(22.97% 0.099 298)
XYZxyz(1.8903, 1.0317, 5.5673)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B44 #2B440B
analogous
#0B0E44 #240B44 #400B44
triadic
#240B44 #44240B #0B4424
tetradic
#240B44 #440B0E #2B440B #0B4440
square
#240B44 #440B0E #2B440B #0B4440
split-complementary
#240B44 #44400B #0E440B
monochromatic
#0E041A #0E041A #240B44 #401479 #5C1CAD

Accessibility & contrast

On white

17.41
#240B44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240B44
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B44#FFFFFF#000000##FFFFFF
##240B441.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A46
Deuteranopia (green-blind)
#001943
Tritanopia (blue-blind)
#1C1A27
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240b44;
/* rgb */ color: rgb(36, 11, 68);
/* oklch */ color: oklch(23.0% 0.099 298.0);
Tailwind
colors: {
  custom: {
    50: '#634d78',
    500: '#240b44',
    950: '#000000',
  },
}
SCSS
$custom: #240b44;
$custom-light: #634d78;
$custom-dark: #000000;
JSON
{
  "hex": "#240b44",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 68
  },
  "hsl": {
    "h": 266.316,
    "s": 72.152,
    "l": 15.49
  },
  "oklch": {
    "l": 0.22968,
    "c": 0.0994,
    "h": 298
  },
  "luminance": 0.01032
}

Semantic roles & 50–950 ramp

primary
#240B44
secondary
#5B812A
accent
#EF399F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #240B44

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

Preview Lab → · Contrast checker → · Palette generator →

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