#240D54#240D54

#240D54 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.117 H 289.7°. Best body text is #FFFFFF at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#240D54
RGBrgb(36, 13, 84)
HSLhsl(259, 73%, 19%)
HSVhsv(259, 85%, 33%)
CMYKcmyk(57.1%, 84.5%, 0%, 67.1%)
CIE-LABlab(11.30, 30.47, -38.44)
CIE-LCHlch(11.30, 49.05, 308.40°)
OKLaboklab(24.91% 0.0396 -0.1105)
OKLCHoklch(24.91% 0.117 289.7)
XYZxyz(2.4712, 1.3029, 8.5071)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D54 #3D540D
analogous
#0D1A54 #240D54 #480D54
triadic
#240D54 #54240D #0D5424
tetradic
#240D54 #540D1A #3D540D #0D5448
square
#240D54 #540D1A #3D540D #0D5448
split-complementary
#240D54 #54480D #1A540D
monochromatic
#0B041A #0D051F #240D54 #3B1589 #511DBE

Accessibility & contrast

On white

16.66
#240D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#240D54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240D54
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D54#FFFFFF#000000##FFFFFF
##240D541.0016.661.2616.66
#FFFFFF16.661.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F56
Deuteranopia (green-blind)
#001C53
Tritanopia (blue-blind)
#122130
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #240d54;
/* rgb */ color: rgb(36, 13, 84);
/* oklch */ color: oklch(24.9% 0.117 289.7);
Tailwind
colors: {
  custom: {
    50: '#654f85',
    500: '#240d54',
    950: '#000000',
  },
}
SCSS
$custom: #240d54;
$custom-light: #654f85;
$custom-dark: #000000;
JSON
{
  "hex": "#240d54",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 84
  },
  "hsl": {
    "h": 259.437,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.24911,
    "c": 0.11741,
    "h": 289.7
  },
  "luminance": 0.01303
}

Semantic roles & 50–950 ramp

primary
#240D54
secondary
#6F8F2E
accent
#F038B4
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240D54

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

Preview Lab → · Contrast checker → · Palette generator →

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