#240D3C#240D3C

#240D3C is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.086 H 302.3°. Best body text is #FFFFFF at 17.53:1 contrast (WCAG AA passes).

Color values

HEX#240D3C
RGBrgb(36, 13, 60)
HSLhsl(269, 64%, 14%)
HSVhsv(269, 78%, 24%)
CMYKcmyk(40%, 78.3%, 0%, 76.5%)
CIE-LABlab(8.90, 23.09, -25.57)
CIE-LCHlch(8.90, 34.46, 312.08°)
OKLaboklab(22.48% 0.0461 -0.0728)
OKLCHoklch(22.48% 0.086 302.3)
XYZxyz(1.6869, 0.9892, 4.3761)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D3C #253C0D
analogous
#0D0D3C #240D3C #3C0D3C
triadic
#240D3C #3C240D #0D3C24
tetradic
#240D3C #3C0D0D #253C0D #0D3C3C
square
#240D3C #3C0D0D #253C0D #0D3C3C
split-complementary
#240D3C #3C3C0D #0D3C0D
monochromatic
#0F0519 #0F0519 #240D3C #42186E #6023A1

Accessibility & contrast

On white

17.53
#240D3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240D3C
17.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D3C#FFFFFF#000000##FFFFFF
##240D3C1.0017.531.2017.53
#FFFFFF17.531.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193D
Deuteranopia (green-blind)
#00193B
Tritanopia (blue-blind)
#1F1823
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240d3c;
/* rgb */ color: rgb(36, 13, 60);
/* oklch */ color: oklch(22.5% 0.086 302.3);
Tailwind
colors: {
  custom: {
    50: '#614d72',
    500: '#240d3c',
    950: '#000000',
  },
}
SCSS
$custom: #240d3c;
$custom-light: #614d72;
$custom-dark: #000000;
JSON
{
  "hex": "#240d3c",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 60
  },
  "hsl": {
    "h": 269.362,
    "s": 64.384,
    "l": 14.314
  },
  "oklch": {
    "l": 0.22482,
    "c": 0.08612,
    "h": 302.3
  },
  "luminance": 0.00989
}

Semantic roles & 50–950 ramp

primary
#240D3C
secondary
#53782D
accent
#E74096
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050108
muted
#79777B

Preview Lab

Preview with #240D3C

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

Preview Lab → · Contrast checker → · Palette generator →

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