#240C3A#240C3A

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

Color values

HEX#240C3A
RGBrgb(36, 12, 58)
HSLhsl(271, 66%, 14%)
HSVhsv(271, 79%, 23%)
CMYKcmyk(37.9%, 79.3%, 0%, 77.3%)
CIE-LABlab(8.51, 23.09, -24.77)
CIE-LCHlch(8.51, 33.86, 312.99°)
OKLaboklab(22.15% 0.0477 -0.0704)
OKLCHoklch(22.15% 0.085 304.1)
XYZxyz(1.6226, 0.9435, 4.0988)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C3A #223A0C
analogous
#0D0C3A #240C3A #3A0C39
triadic
#240C3A #3A240C #0C3A24
tetradic
#240C3A #3A0D0C #223A0C #0C393A
square
#240C3A #3A0D0C #223A0C #0C393A
split-complementary
#240C3A #393A0C #0C3A0D
monochromatic
#100519 #100519 #240C3A #43166D #63219F

Accessibility & contrast

On white

17.66
#240C3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240C3A
17.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C3A#FFFFFF#000000##FFFFFF
##240C3A1.0017.661.1917.66
#FFFFFF17.661.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240c3a;
/* rgb */ color: rgb(36, 12, 58);
/* oklch */ color: oklch(22.1% 0.085 304.1);
Tailwind
colors: {
  custom: {
    50: '#614d70',
    500: '#240c3a',
    950: '#000000',
  },
}
SCSS
$custom: #240c3a;
$custom-light: #614d70;
$custom-dark: #000000;
JSON
{
  "hex": "#240c3a",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 58
  },
  "hsl": {
    "h": 271.304,
    "s": 65.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.22148,
    "c": 0.08502,
    "h": 304.1
  },
  "luminance": 0.00944
}

Semantic roles & 50–950 ramp

primary
#240C3A
secondary
#4F762C
accent
#E93F90
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240C3A

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

Preview Lab → · Contrast checker → · Palette generator →

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