#240C30#240C30

#240C30 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.3% C 0.072 H 312.6°. Best body text is #FFFFFF at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#240C30
RGBrgb(36, 12, 48)
HSLhsl(280, 60%, 12%)
HSVhsv(280, 75%, 19%)
CMYKcmyk(25%, 75%, 0%, 81.2%)
CIE-LABlab(7.69, 20.23, -18.79)
CIE-LCHlch(7.69, 27.61, 317.11°)
OKLaboklab(21.29% 0.0487 -0.0528)
OKLCHoklch(21.29% 0.072 312.6)
XYZxyz(1.3924, 0.8514, 2.8867)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C30 #18300C
analogous
#120C30 #240C30 #300C2A
triadic
#240C30 #30240C #0C3024
tetradic
#240C30 #30120C #18300C #0C2A30
square
#240C30 #30120C #18300C #0C2A30
split-complementary
#240C30 #2A300C #0C3012
monochromatic
#120618 #120618 #240C30 #491861 #6D2492

Accessibility & contrast

On white

17.95
#240C30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#240C30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240C30
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C30#FFFFFF#000000##FFFFFF
##240C301.0017.951.1717.95
#FFFFFF17.951.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021631
Deuteranopia (green-blind)
#0A172F
Tritanopia (blue-blind)
#23131C
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240c30;
/* rgb */ color: rgb(36, 12, 48);
/* oklch */ color: oklch(21.3% 0.072 312.6);
Tailwind
colors: {
  custom: {
    50: '#604c68',
    500: '#240c30',
    950: '#000000',
  },
}
SCSS
$custom: #240c30;
$custom-light: #604c68;
$custom-dark: #000000;
JSON
{
  "hex": "#240c30",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 48
  },
  "hsl": {
    "h": 280,
    "s": 60,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21292,
    "c": 0.07184,
    "h": 312.6
  },
  "luminance": 0.00851
}

Semantic roles & 50–950 ramp

primary
#240C30
secondary
#416C2C
accent
#E34579
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240C30

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

Preview Lab → · Contrast checker → · Palette generator →

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