#240A3D#240A3D

#240A3D is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.1% C 0.092 H 302.7°. Best body text is #FFFFFF at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#240A3D
RGBrgb(36, 10, 61)
HSLhsl(271, 72%, 14%)
HSVhsv(271, 84%, 24%)
CMYKcmyk(41%, 83.6%, 0%, 76.1%)
CIE-LABlab(8.39, 25.09, -27.13)
CIE-LCHlch(8.39, 36.95, 312.76°)
OKLaboklab(22.15% 0.0496 -0.0773)
OKLCHoklch(22.15% 0.092 302.7)
XYZxyz(1.6782, 0.9291, 4.5049)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A3D #233D0A
analogous
#0B0A3D #240A3D #3D0A3D
triadic
#240A3D #3D240A #0A3D24
tetradic
#240A3D #3D0B0A #233D0A #0A3D3D
square
#240A3D #3D0B0A #233D0A #0A3D3D
split-complementary
#240A3D #3D3D0A #0A3D0B
monochromatic
#10041A #10041A #240A3D #431372 #621BA6

Accessibility & contrast

On white

17.71
#240A3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240A3D
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A3D#FFFFFF#000000##FFFFFF
##240A3D1.0017.711.1917.71
#FFFFFF17.711.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183E
Deuteranopia (green-blind)
#00183C
Tritanopia (blue-blind)
#1F1722
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240a3d;
/* rgb */ color: rgb(36, 10, 61);
/* oklch */ color: oklch(22.1% 0.092 302.7);
Tailwind
colors: {
  custom: {
    50: '#624c73',
    500: '#240a3d',
    950: '#000000',
  },
}
SCSS
$custom: #240a3d;
$custom-light: #624c73;
$custom-dark: #000000;
JSON
{
  "hex": "#240a3d",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 61
  },
  "hsl": {
    "h": 270.588,
    "s": 71.831,
    "l": 13.922
  },
  "oklch": {
    "l": 0.22145,
    "c": 0.09183,
    "h": 302.7
  },
  "luminance": 0.00929
}

Semantic roles & 50–950 ramp

primary
#240A3D
secondary
#517A28
accent
#EF3992
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #240A3D

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

Preview Lab → · Contrast checker → · Palette generator →

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