#240B33#240B33

#240B33 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.4% C 0.077 H 310.1°. Best body text is #FFFFFF at 17.94:1 contrast (WCAG AA passes).

Color values

HEX#240B33
RGBrgb(36, 11, 51)
HSLhsl(278, 65%, 12%)
HSVhsv(278, 78%, 20%)
CMYKcmyk(29.4%, 78.4%, 0%, 80%)
CIE-LABlab(7.71, 21.66, -20.97)
CIE-LCHlch(7.71, 30.15, 315.93°)
OKLaboklab(21.38% 0.05 -0.0592)
OKLCHoklch(21.38% 0.078 310.1)
XYZxyz(1.4447, 0.8535, 3.2200)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B33 #1A330B
analogous
#100B33 #240B33 #330B2E
triadic
#240B33 #33240B #0B3324
tetradic
#240B33 #33100B #1A330B #0B2E33
square
#240B33 #33100B #1A330B #0B2E33
split-complementary
#240B33 #2E330B #0B3310
monochromatic
#120519 #120519 #240B33 #481665 #6B2198

Accessibility & contrast

On white

17.94
#240B33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240B33
17.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B33#FFFFFF#000000##FFFFFF
##240B331.0017.941.1717.94
#FFFFFF17.941.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240b33;
/* rgb */ color: rgb(36, 11, 51);
/* oklch */ color: oklch(21.4% 0.077 310.1);
Tailwind
colors: {
  custom: {
    50: '#614c6b',
    500: '#240b33',
    950: '#000000',
  },
}
SCSS
$custom: #240b33;
$custom-light: #614c6b;
$custom-dark: #000000;
JSON
{
  "hex": "#240b33",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 51
  },
  "hsl": {
    "h": 277.5,
    "s": 64.516,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21382,
    "c": 0.0775,
    "h": 310.1
  },
  "luminance": 0.00853
}

Semantic roles & 50–950 ramp

primary
#240B33
secondary
#44702A
accent
#E8407F
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240B33

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

Preview Lab → · Contrast checker → · Palette generator →

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