#240D3B#240D3B

#240D3B is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.4% C 0.085 H 303.0°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#240D3B
RGBrgb(36, 13, 59)
HSLhsl(270, 64%, 14%)
HSVhsv(270, 78%, 23%)
CMYKcmyk(39%, 78%, 0%, 76.9%)
CIE-LABlab(8.81, 22.79, -25.00)
CIE-LCHlch(8.81, 33.83, 312.36°)
OKLaboklab(22.39% 0.0462 -0.0711)
OKLCHoklch(22.39% 0.085 303)
XYZxyz(1.6607, 0.9787, 4.2382)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D3B #243B0D
analogous
#0D0D3B #240D3B #3B0D3B
triadic
#240D3B #3B240D #0D3B24
tetradic
#240D3B #3B0D0D #243B0D #0D3B3B
square
#240D3B #3B0D0D #243B0D #0D3B3B
split-complementary
#240D3B #3B3B0D #0D3B0D
monochromatic
#0F0619 #0F0619 #240D3B #43186D #61239F

Accessibility & contrast

On white

17.56
#240D3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#240D3B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240D3B
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D3B#FFFFFF#000000##FFFFFF
##240D3B1.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193C
Deuteranopia (green-blind)
#00193A
Tritanopia (blue-blind)
#1F1722
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240d3b;
/* rgb */ color: rgb(36, 13, 59);
/* oklch */ color: oklch(22.4% 0.085 303.0);
Tailwind
colors: {
  custom: {
    50: '#614d71',
    500: '#240d3b',
    950: '#000000',
  },
}
SCSS
$custom: #240d3b;
$custom-light: #614d71;
$custom-dark: #000000;
JSON
{
  "hex": "#240d3b",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 59
  },
  "hsl": {
    "h": 270,
    "s": 63.889,
    "l": 14.118
  },
  "oklch": {
    "l": 0.22391,
    "c": 0.08478,
    "h": 303
  },
  "luminance": 0.00979
}

Semantic roles & 50–950 ramp

primary
#240D3B
secondary
#52772D
accent
#E74194
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050108
muted
#79777B

Preview Lab

Preview with #240D3B

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

Preview Lab → · Contrast checker → · Palette generator →

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