#240D56#240D56

#240D56 is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.1% C 0.120 H 289.0°. Best body text is #FFFFFF at 16.57:1 contrast (WCAG AA passes).

Color values

HEX#240D56
RGBrgb(36, 13, 86)
HSLhsl(259, 74%, 19%)
HSVhsv(259, 85%, 34%)
CMYKcmyk(58.1%, 84.9%, 0%, 66.3%)
CIE-LABlab(11.52, 31.09, -39.44)
CIE-LCHlch(11.52, 50.22, 308.25°)
OKLaboklab(25.13% 0.039 -0.1134)
OKLCHoklch(25.13% 0.12 289)
XYZxyz(2.5507, 1.3347, 8.9255)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D56 #3F560D
analogous
#0D1B56 #240D56 #490D56
triadic
#240D56 #56240D #0D5624
tetradic
#240D56 #560D1B #3F560D #0D5649
square
#240D56 #560D1B #3F560D #0D5649
split-complementary
#240D56 #56490D #1B560D
monochromatic
#0B041B #0E0521 #240D56 #3A158B #511DC0

Accessibility & contrast

On white

16.57
#240D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#240D56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240D56
16.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D56#FFFFFF#000000##FFFFFF
##240D561.0016.571.2716.57
#FFFFFF16.571.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002058
Deuteranopia (green-blind)
#001D55
Tritanopia (blue-blind)
#102231
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #240d56;
/* rgb */ color: rgb(36, 13, 86);
/* oklch */ color: oklch(25.1% 0.120 289.0);
Tailwind
colors: {
  custom: {
    50: '#664f86',
    500: '#240d56',
    950: '#000000',
  },
}
SCSS
$custom: #240d56;
$custom-light: #664f86;
$custom-dark: #000000;
JSON
{
  "hex": "#240d56",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 86
  },
  "hsl": {
    "h": 258.904,
    "s": 73.737,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25131,
    "c": 0.11994,
    "h": 289
  },
  "luminance": 0.01335
}

Semantic roles & 50–950 ramp

primary
#240D56
secondary
#72912E
accent
#F037B6
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240D56

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

Preview Lab → · Contrast checker → · Palette generator →

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