#240C35#240C35

#240C35 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.7% C 0.078 H 308.1°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#240C35
RGBrgb(36, 12, 53)
HSLhsl(275, 63%, 13%)
HSVhsv(275, 77%, 21%)
CMYKcmyk(32.1%, 77.4%, 0%, 79.2%)
CIE-LABlab(8.09, 21.64, -21.83)
CIE-LCHlch(8.09, 30.74, 314.75°)
OKLaboklab(21.71% 0.0484 -0.0617)
OKLCHoklch(21.71% 0.078 308.1)
XYZxyz(1.5015, 0.8951, 3.4611)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C35 #1D350C
analogous
#0F0C35 #240C35 #350C31
triadic
#240C35 #35240C #0C3524
tetradic
#240C35 #350F0C #1D350C #0C3135
square
#240C35 #350F0C #1D350C #0C3135
split-complementary
#240C35 #31350C #0C350F
monochromatic
#110619 #110619 #240C35 #461767 #682399

Accessibility & contrast

On white

17.81
#240C35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240C35
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C35#FFFFFF#000000##FFFFFF
##240C351.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240c35;
/* rgb */ color: rgb(36, 12, 53);
/* oklch */ color: oklch(21.7% 0.078 308.1);
Tailwind
colors: {
  custom: {
    50: '#614c6c',
    500: '#240c35',
    950: '#000000',
  },
}
SCSS
$custom: #240c35;
$custom-light: #614c6c;
$custom-dark: #000000;
JSON
{
  "hex": "#240c35",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 53
  },
  "hsl": {
    "h": 275.122,
    "s": 63.077,
    "l": 12.745
  },
  "oklch": {
    "l": 0.21707,
    "c": 0.07843,
    "h": 308.1
  },
  "luminance": 0.00895
}

Semantic roles & 50–950 ramp

primary
#240C35
secondary
#48712C
accent
#E64286
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240C35

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

Preview Lab → · Contrast checker → · Palette generator →

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