#240D48#240D48

#240D48 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.6% C 0.102 H 295.2°. Best body text is #FFFFFF at 17.13:1 contrast (WCAG AA passes).

Color values

HEX#240D48
RGBrgb(36, 13, 72)
HSLhsl(263, 69%, 17%)
HSVhsv(263, 82%, 28%)
CMYKcmyk(50%, 81.9%, 0%, 71.8%)
CIE-LABlab(10.04, 26.75, -32.22)
CIE-LCHlch(10.04, 41.88, 309.70°)
OKLaboklab(23.64% 0.0434 -0.0923)
OKLCHoklch(23.64% 0.102 295.2)
XYZxyz(2.0409, 1.1307, 6.2404)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D48 #31480D
analogous
#0D1448 #240D48 #420D48
triadic
#240D48 #48240D #0D4824
tetradic
#240D48 #480D14 #31480D #0D4842
square
#240D48 #480D14 #31480D #0D4842
split-complementary
#240D48 #48420D #14480D
monochromatic
#0D051A #0D051A #240D48 #3E167C #5820B0

Accessibility & contrast

On white

17.13
#240D48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#240D48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240D48
17.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D48#FFFFFF#000000##FFFFFF
##240D481.0017.131.2317.13
#FFFFFF17.131.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4A
Deuteranopia (green-blind)
#001B47
Tritanopia (blue-blind)
#1A1C29
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #240d48;
/* rgb */ color: rgb(36, 13, 72);
/* oklch */ color: oklch(23.6% 0.102 295.2);
Tailwind
colors: {
  custom: {
    50: '#634e7c',
    500: '#240d48',
    950: '#000000',
  },
}
SCSS
$custom: #240d48;
$custom-light: #634e7c;
$custom-dark: #000000;
JSON
{
  "hex": "#240d48",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 72
  },
  "hsl": {
    "h": 263.39,
    "s": 69.412,
    "l": 16.667
  },
  "oklch": {
    "l": 0.23643,
    "c": 0.10198,
    "h": 295.2
  },
  "luminance": 0.01131
}

Semantic roles & 50–950 ramp

primary
#240D48
secondary
#62832D
accent
#EC3CA7
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #240D48

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

Preview Lab → · Contrast checker → · Palette generator →

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