#240C36#240C36

#240C36 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.8% C 0.080 H 307.2°. Best body text is #FFFFFF at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#240C36
RGBrgb(36, 12, 54)
HSLhsl(274, 64%, 13%)
HSVhsv(274, 78%, 21%)
CMYKcmyk(33.3%, 77.8%, 0%, 78.8%)
CIE-LABlab(8.17, 21.93, -22.42)
CIE-LCHlch(8.17, 31.36, 314.36°)
OKLaboklab(21.79% 0.0483 -0.0635)
OKLCHoklch(21.79% 0.08 307.2)
XYZxyz(1.5247, 0.9044, 3.5835)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C36 #1E360C
analogous
#0F0C36 #240C36 #360C33
triadic
#240C36 #36240C #0C3624
tetradic
#240C36 #360F0C #1E360C #0C3336
square
#240C36 #360F0C #1E360C #0C3336
split-complementary
#240C36 #33360C #0C360F
monochromatic
#110619 #110619 #240C36 #451768 #67229A

Accessibility & contrast

On white

17.78
#240C36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#240C36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240C36
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C36#FFFFFF#000000##FFFFFF
##240C361.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001737
Deuteranopia (green-blind)
#041835
Tritanopia (blue-blind)
#21151F
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240c36;
/* rgb */ color: rgb(36, 12, 54);
/* oklch */ color: oklch(21.8% 0.080 307.2);
Tailwind
colors: {
  custom: {
    50: '#614c6d',
    500: '#240c36',
    950: '#000000',
  },
}
SCSS
$custom: #240c36;
$custom-light: #614c6d;
$custom-dark: #000000;
JSON
{
  "hex": "#240c36",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 54
  },
  "hsl": {
    "h": 274.286,
    "s": 63.636,
    "l": 12.941
  },
  "oklch": {
    "l": 0.21793,
    "c": 0.07975,
    "h": 307.2
  },
  "luminance": 0.00904
}

Semantic roles & 50–950 ramp

primary
#240C36
secondary
#4A722C
accent
#E74188
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240C36

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

Preview Lab → · Contrast checker → · Palette generator →

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