#240B32#240B32

#240B32 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.3% C 0.076 H 311.1°. Best body text is #FFFFFF at 17.96:1 contrast (WCAG AA passes).

Color values

HEX#240B32
RGBrgb(36, 11, 50)
HSLhsl(278, 64%, 12%)
HSVhsv(278, 78%, 20%)
CMYKcmyk(28%, 78%, 0%, 80.4%)
CIE-LABlab(7.63, 21.37, -20.36)
CIE-LCHlch(7.63, 29.52, 316.39°)
OKLaboklab(21.3% 0.0501 -0.0575)
OKLCHoklch(21.3% 0.076 311.1)
XYZxyz(1.4228, 0.8447, 3.1051)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B32 #19320B
analogous
#110B32 #240B32 #320B2D
triadic
#240B32 #32240B #0B3224
tetradic
#240B32 #32110B #19320B #0B2D32
square
#240B32 #32110B #19320B #0B2D32
split-complementary
#240B32 #2D320B #0B3211
monochromatic
#120619 #120619 #240B32 #481664 #6C2196

Accessibility & contrast

On white

17.96
#240B32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240B32
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B32#FFFFFF#000000##FFFFFF
##240B321.0017.961.1717.96
#FFFFFF17.961.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240b32;
/* rgb */ color: rgb(36, 11, 50);
/* oklch */ color: oklch(21.3% 0.076 311.1);
Tailwind
colors: {
  custom: {
    50: '#604c6a',
    500: '#240b32',
    950: '#000000',
  },
}
SCSS
$custom: #240b32;
$custom-light: #604c6a;
$custom-dark: #000000;
JSON
{
  "hex": "#240b32",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 50
  },
  "hsl": {
    "h": 278.462,
    "s": 63.934,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21297,
    "c": 0.07621,
    "h": 311.1
  },
  "luminance": 0.00845
}

Semantic roles & 50–950 ramp

primary
#240B32
secondary
#436F2A
accent
#E7417C
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240B32

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

Preview Lab → · Contrast checker → · Palette generator →

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