#240C32#240C32

#240C32 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.5% C 0.074 H 310.7°. Best body text is #FFFFFF at 17.89:1 contrast (WCAG AA passes).

Color values

HEX#240C32
RGBrgb(36, 12, 50)
HSLhsl(278, 61%, 12%)
HSVhsv(278, 76%, 20%)
CMYKcmyk(28%, 76%, 0%, 80.4%)
CIE-LABlab(7.84, 20.79, -20.02)
CIE-LCHlch(7.84, 28.86, 316.09°)
OKLaboklab(21.46% 0.0486 -0.0564)
OKLCHoklch(21.46% 0.074 310.7)
XYZxyz(1.4346, 0.8683, 3.1090)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C32 #1A320C
analogous
#110C32 #240C32 #320C2D
triadic
#240C32 #32240C #0C3224
tetradic
#240C32 #32110C #1A320C #0C2D32
square
#240C32 #32110C #1A320C #0C2D32
split-complementary
#240C32 #2D320C #0C3211
monochromatic
#120619 #120619 #240C32 #481863 #6B2495

Accessibility & contrast

On white

17.89
#240C32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#240C32 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240C32
17.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C32#FFFFFF#000000##FFFFFF
##240C321.0017.891.1717.89
#FFFFFF17.891.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001633
Deuteranopia (green-blind)
#081831
Tritanopia (blue-blind)
#22131D
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240c32;
/* rgb */ color: rgb(36, 12, 50);
/* oklch */ color: oklch(21.5% 0.074 310.7);
Tailwind
colors: {
  custom: {
    50: '#604c6a',
    500: '#240c32',
    950: '#000000',
  },
}
SCSS
$custom: #240c32;
$custom-light: #604c6a;
$custom-dark: #000000;
JSON
{
  "hex": "#240c32",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 50
  },
  "hsl": {
    "h": 277.895,
    "s": 61.29,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21455,
    "c": 0.07447,
    "h": 310.7
  },
  "luminance": 0.00868
}

Semantic roles & 50–950 ramp

primary
#240C32
secondary
#446E2C
accent
#E4437F
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240C32

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

Preview Lab → · Contrast checker → · Palette generator →

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