#240C3D#240C3D

#240C3D is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.4% C 0.089 H 302.0°. Best body text is #FFFFFF at 17.57:1 contrast (WCAG AA passes).

Color values

HEX#240C3D
RGBrgb(36, 12, 61)
HSLhsl(269, 67%, 14%)
HSVhsv(269, 80%, 24%)
CMYKcmyk(41%, 80.3%, 0%, 76.1%)
CIE-LABlab(8.78, 23.98, -26.49)
CIE-LCHlch(8.78, 35.73, 312.15°)
OKLaboklab(22.43% 0.0472 -0.0754)
OKLCHoklch(22.43% 0.089 302)
XYZxyz(1.7011, 0.9749, 4.5125)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C3D #253D0C
analogous
#0C0D3D #240C3D #3D0C3D
triadic
#240C3D #3D240C #0C3D24
tetradic
#240C3D #3D0C0D #253D0C #0C3D3D
square
#240C3D #3D0C0D #253D0C #0C3D3D
split-complementary
#240C3D #3D3D0C #0D3D0C
monochromatic
#0F051A #0F051A #240C3D #421670 #6020A3

Accessibility & contrast

On white

17.57
#240C3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#240C3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240C3D
17.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C3D#FFFFFF#000000##FFFFFF
##240C3D1.0017.571.2017.57
#FFFFFF17.571.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193E
Deuteranopia (green-blind)
#00193C
Tritanopia (blue-blind)
#1F1823
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240c3d;
/* rgb */ color: rgb(36, 12, 61);
/* oklch */ color: oklch(22.4% 0.089 302.0);
Tailwind
colors: {
  custom: {
    50: '#624d73',
    500: '#240c3d',
    950: '#000000',
  },
}
SCSS
$custom: #240c3d;
$custom-light: #624d73;
$custom-dark: #000000;
JSON
{
  "hex": "#240c3d",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 61
  },
  "hsl": {
    "h": 269.388,
    "s": 67.123,
    "l": 14.314
  },
  "oklch": {
    "l": 0.22425,
    "c": 0.08896,
    "h": 302
  },
  "luminance": 0.00975
}

Semantic roles & 50–950 ramp

primary
#240C3D
secondary
#53792C
accent
#EA3E96
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #240C3D

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

Preview Lab → · Contrast checker → · Palette generator →

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