#240B34#240B34

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

Color values

HEX#240B34
RGBrgb(36, 11, 52)
HSLhsl(277, 65%, 12%)
HSVhsv(277, 79%, 20%)
CMYKcmyk(30.8%, 78.8%, 0%, 79.6%)
CIE-LABlab(7.79, 21.94, -21.57)
CIE-LCHlch(7.79, 30.77, 315.49°)
OKLaboklab(21.47% 0.0499 -0.061)
OKLCHoklch(21.47% 0.079 309.3)
XYZxyz(1.4669, 0.8624, 3.3373)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B34 #1B340B
analogous
#0F0B34 #240B34 #340B30
triadic
#240B34 #34240B #0B3424
tetradic
#240B34 #340F0B #1B340B #0B3034
square
#240B34 #340F0B #1B340B #0B3034
split-complementary
#240B34 #30340B #0B340F
monochromatic
#110519 #110519 #240B34 #471667 #6A2099

Accessibility & contrast

On white

17.91
#240B34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240B34
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B34#FFFFFF#000000##FFFFFF
##240B341.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001635
Deuteranopia (green-blind)
#051733
Tritanopia (blue-blind)
#22141E
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240b34;
/* rgb */ color: rgb(36, 11, 52);
/* oklch */ color: oklch(21.5% 0.079 309.3);
Tailwind
colors: {
  custom: {
    50: '#614c6c',
    500: '#240b34',
    950: '#000000',
  },
}
SCSS
$custom: #240b34;
$custom-light: #614c6c;
$custom-dark: #000000;
JSON
{
  "hex": "#240b34",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 52
  },
  "hsl": {
    "h": 276.585,
    "s": 65.079,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21467,
    "c": 0.0788,
    "h": 309.3
  },
  "luminance": 0.00862
}

Semantic roles & 50–950 ramp

primary
#240B34
secondary
#46712A
accent
#E84081
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240B34

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

Preview Lab → · Contrast checker → · Palette generator →

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