#240A30#240A30

#240A30 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.0% C 0.075 H 313.3°. Best body text is #FFFFFF at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#240A30
RGBrgb(36, 10, 48)
HSLhsl(281, 66%, 11%)
HSVhsv(281, 79%, 19%)
CMYKcmyk(25%, 79.2%, 0%, 81.2%)
CIE-LABlab(7.28, 21.34, -19.45)
CIE-LCHlch(7.28, 28.87, 317.65°)
OKLaboklab(20.98% 0.0517 -0.0549)
OKLCHoklch(20.98% 0.075 313.3)
XYZxyz(1.3695, 0.8056, 2.8791)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A30 #16300A
analogous
#110A30 #240A30 #300A29
triadic
#240A30 #30240A #0A3024
tetradic
#240A30 #30110A #16300A #0A2930
square
#240A30 #30110A #16300A #0A2930
split-complementary
#240A30 #29300A #0A3011
monochromatic
#130519 #130519 #240A30 #4A1563 #701F95

Accessibility & contrast

On white

18.08
#240A30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#240A30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240A30
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A30#FFFFFF#000000##FFFFFF
##240A301.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001531
Deuteranopia (green-blind)
#08172F
Tritanopia (blue-blind)
#23111B
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240a30;
/* rgb */ color: rgb(36, 10, 48);
/* oklch */ color: oklch(21.0% 0.075 313.3);
Tailwind
colors: {
  custom: {
    50: '#604b68',
    500: '#240a30',
    950: '#000000',
  },
}
SCSS
$custom: #240a30;
$custom-light: #604b68;
$custom-dark: #000000;
JSON
{
  "hex": "#240a30",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 48
  },
  "hsl": {
    "h": 281.053,
    "s": 65.517,
    "l": 11.373
  },
  "oklch": {
    "l": 0.20979,
    "c": 0.07536,
    "h": 313.3
  },
  "luminance": 0.00806
}

Semantic roles & 50–950 ramp

primary
#240A30
secondary
#3E6D29
accent
#E83F75
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240A30

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

Preview Lab → · Contrast checker → · Palette generator →

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