#240D39#240D39

#240D39 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.2% C 0.082 H 304.5°. Best body text is #FFFFFF at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#240D39
RGBrgb(36, 13, 57)
HSLhsl(271, 63%, 14%)
HSVhsv(271, 77%, 22%)
CMYKcmyk(36.8%, 77.2%, 0%, 77.6%)
CIE-LABlab(8.64, 22.20, -23.84)
CIE-LCHlch(8.64, 32.58, 312.96°)
OKLaboklab(22.21% 0.0465 -0.0677)
OKLCHoklch(22.21% 0.082 304.5)
XYZxyz(1.6098, 0.9583, 3.9703)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D39 #22390D
analogous
#0E0D39 #240D39 #390D38
triadic
#240D39 #39240D #0D3924
tetradic
#240D39 #390E0D #22390D #0D3839
square
#240D39 #390E0D #22390D #0D3839
split-complementary
#240D39 #38390D #0D390E
monochromatic
#100619 #100619 #240D39 #43186B #63249D

Accessibility & contrast

On white

17.62
#240D39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#240D39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240D39
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D39#FFFFFF#000000##FFFFFF
##240D391.0017.621.1917.62
#FFFFFF17.621.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183A
Deuteranopia (green-blind)
#021938
Tritanopia (blue-blind)
#201721
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240d39;
/* rgb */ color: rgb(36, 13, 57);
/* oklch */ color: oklch(22.2% 0.082 304.5);
Tailwind
colors: {
  custom: {
    50: '#614d70',
    500: '#240d39',
    950: '#000000',
  },
}
SCSS
$custom: #240d39;
$custom-light: #614d70;
$custom-dark: #000000;
JSON
{
  "hex": "#240d39",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 57
  },
  "hsl": {
    "h": 271.364,
    "s": 62.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.22212,
    "c": 0.0821,
    "h": 304.5
  },
  "luminance": 0.00958
}

Semantic roles & 50–950 ramp

primary
#240D39
secondary
#4F742D
accent
#E64290
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240D39

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

Preview Lab → · Contrast checker → · Palette generator →

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