#240D58#240D58

#240D58 is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.4% C 0.122 H 288.2°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#240D58
RGBrgb(36, 13, 88)
HSLhsl(258, 74%, 20%)
HSVhsv(258, 85%, 35%)
CMYKcmyk(59.1%, 85.2%, 0%, 65.5%)
CIE-LABlab(11.74, 31.71, -40.43)
CIE-LCHlch(11.74, 51.38, 308.11°)
OKLaboklab(25.35% 0.0382 -0.1163)
OKLCHoklch(25.35% 0.122 288.2)
XYZxyz(2.6324, 1.3674, 9.3558)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D58 #41580D
analogous
#0D1C58 #240D58 #4A0D58
triadic
#240D58 #58240D #0D5824
tetradic
#240D58 #580D1C #41580D #0D584A
square
#240D58 #580D1C #41580D #0D584A
split-complementary
#240D58 #584A0D #1C580D
monochromatic
#0B041B #0E0523 #240D58 #3A158D #501DC3

Accessibility & contrast

On white

16.49
#240D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240D58
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D58#FFFFFF#000000##FFFFFF
##240D581.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215A
Deuteranopia (green-blind)
#001D57
Tritanopia (blue-blind)
#0E2333
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #240d58;
/* rgb */ color: rgb(36, 13, 88);
/* oklch */ color: oklch(25.4% 0.122 288.2);
Tailwind
colors: {
  custom: {
    50: '#664f88',
    500: '#240d58',
    950: '#000000',
  },
}
SCSS
$custom: #240d58;
$custom-light: #664f88;
$custom-dark: #000000;
JSON
{
  "hex": "#240d58",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 88
  },
  "hsl": {
    "h": 258.4,
    "s": 74.257,
    "l": 19.804
  },
  "oklch": {
    "l": 0.25353,
    "c": 0.12246,
    "h": 288.2
  },
  "luminance": 0.01367
}

Semantic roles & 50–950 ramp

primary
#240D58
secondary
#74932E
accent
#F137B8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240D58

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

Preview Lab → · Contrast checker → · Palette generator →

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