#240C3C#240C3C

#240C3C is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.3% C 0.088 H 302.7°. Best body text is #FFFFFF at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#240C3C
RGBrgb(36, 12, 60)
HSLhsl(270, 67%, 14%)
HSVhsv(270, 80%, 24%)
CMYKcmyk(40%, 80%, 0%, 76.5%)
CIE-LABlab(8.69, 23.68, -25.92)
CIE-LCHlch(8.69, 35.10, 312.41°)
OKLaboklab(22.33% 0.0474 -0.0738)
OKLCHoklch(22.33% 0.088 302.7)
XYZxyz(1.6744, 0.9643, 4.3720)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C3C #243C0C
analogous
#0C0C3C #240C3C #3C0C3C
triadic
#240C3C #3C240C #0C3C24
tetradic
#240C3C #3C0C0C #243C0C #0C3C3C
square
#240C3C #3C0C0C #243C0C #0C3C3C
split-complementary
#240C3C #3C3C0C #0C3C0C
monochromatic
#0F051A #0F051A #240C3C #43166F #6120A2

Accessibility & contrast

On white

17.61
#240C3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240C3C
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C3C#FFFFFF#000000##FFFFFF
##240C3C1.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183D
Deuteranopia (green-blind)
#00193B
Tritanopia (blue-blind)
#1F1722
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240c3c;
/* rgb */ color: rgb(36, 12, 60);
/* oklch */ color: oklch(22.3% 0.088 302.7);
Tailwind
colors: {
  custom: {
    50: '#614d72',
    500: '#240c3c',
    950: '#000000',
  },
}
SCSS
$custom: #240c3c;
$custom-light: #614d72;
$custom-dark: #000000;
JSON
{
  "hex": "#240c3c",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 60
  },
  "hsl": {
    "h": 270,
    "s": 66.667,
    "l": 14.118
  },
  "oklch": {
    "l": 0.22332,
    "c": 0.08765,
    "h": 302.7
  },
  "luminance": 0.00964
}

Semantic roles & 50–950 ramp

primary
#240C3C
secondary
#52782C
accent
#EA3E94
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050108
muted
#79777B

Preview Lab

Preview with #240C3C

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

Preview Lab → · Contrast checker → · Palette generator →

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