#240D3A#240D3A

#240D3A is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.3% C 0.083 H 303.8°. Best body text is #FFFFFF at 17.59:1 contrast (WCAG AA passes).

Color values

HEX#240D3A
RGBrgb(36, 13, 58)
HSLhsl(271, 63%, 14%)
HSVhsv(271, 78%, 23%)
CMYKcmyk(37.9%, 77.6%, 0%, 77.3%)
CIE-LABlab(8.73, 22.50, -24.42)
CIE-LCHlch(8.73, 33.20, 312.65°)
OKLaboklab(22.3% 0.0464 -0.0694)
OKLCHoklch(22.3% 0.083 303.8)
XYZxyz(1.6350, 0.9684, 4.1030)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D3A #233A0D
analogous
#0E0D3A #240D3A #3A0D3A
triadic
#240D3A #3A240D #0D3A24
tetradic
#240D3A #3A0E0D #233A0D #0D3A3A
square
#240D3A #3A0E0D #233A0D #0D3A3A
split-complementary
#240D3A #3A3A0D #0D3A0E
monochromatic
#100619 #100619 #240D3A #43186C #62239E

Accessibility & contrast

On white

17.59
#240D3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240D3A
17.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D3A#FFFFFF#000000##FFFFFF
##240D3A1.0017.591.1917.59
#FFFFFF17.591.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183B
Deuteranopia (green-blind)
#011939
Tritanopia (blue-blind)
#201722
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240d3a;
/* rgb */ color: rgb(36, 13, 58);
/* oklch */ color: oklch(22.3% 0.083 303.8);
Tailwind
colors: {
  custom: {
    50: '#614d70',
    500: '#240d3a',
    950: '#000000',
  },
}
SCSS
$custom: #240d3a;
$custom-light: #614d70;
$custom-dark: #000000;
JSON
{
  "hex": "#240d3a",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 58
  },
  "hsl": {
    "h": 270.667,
    "s": 63.38,
    "l": 13.922
  },
  "oklch": {
    "l": 0.22301,
    "c": 0.08344,
    "h": 303.8
  },
  "luminance": 0.00968
}

Semantic roles & 50–950 ramp

primary
#240D3A
secondary
#51762D
accent
#E64192
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240D3A

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

Preview Lab → · Contrast checker → · Palette generator →

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