#240C4D#240C4D

#240C4D is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.110 H 293.0°. Best body text is #FFFFFF at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#240C4D
RGBrgb(36, 12, 77)
HSLhsl(262, 73%, 17%)
HSVhsv(262, 84%, 30%)
CMYKcmyk(53.2%, 84.4%, 0%, 69.8%)
CIE-LABlab(10.36, 28.82, -35.16)
CIE-LCHlch(10.36, 45.47, 309.34°)
OKLaboklab(24.03% 0.0429 -0.1009)
OKLCHoklch(24.03% 0.11 293)
XYZxyz(2.1982, 1.1738, 7.1305)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C4D #354D0C
analogous
#0C144D #240C4D #450C4D
triadic
#240C4D #4D240C #0C4D24
tetradic
#240C4D #4D0C14 #354D0C #0C4D45
square
#240C4D #4D0C14 #354D0C #0C4D45
split-complementary
#240C4D #4D450C #144D0C
monochromatic
#0C041A #0C041A #240C4D #3D1482 #561DB7

Accessibility & contrast

On white

17.01
#240C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#240C4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240C4D
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C4D#FFFFFF#000000##FFFFFF
##240C4D1.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4F
Deuteranopia (green-blind)
#001B4C
Tritanopia (blue-blind)
#171E2C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #240c4d;
/* rgb */ color: rgb(36, 12, 77);
/* oklch */ color: oklch(24.0% 0.110 293.0);
Tailwind
colors: {
  custom: {
    50: '#644e7f',
    500: '#240c4d',
    950: '#000000',
  },
}
SCSS
$custom: #240c4d;
$custom-light: #644e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#240c4d",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 262.154,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.2403,
    "c": 0.10963,
    "h": 293
  },
  "luminance": 0.01174
}

Semantic roles & 50–950 ramp

primary
#240C4D
secondary
#66892C
accent
#F038AC
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06010A
muted
#7A777C

Preview Lab

Preview with #240C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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