#240B31#240B31

#240B31 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.2% C 0.075 H 312.0°. Best body text is #FFFFFF at 17.99:1 contrast (WCAG AA passes).

Color values

HEX#240B31
RGBrgb(36, 11, 49)
HSLhsl(279, 63%, 12%)
HSVhsv(279, 78%, 19%)
CMYKcmyk(26.5%, 77.6%, 0%, 80.8%)
CIE-LABlab(7.55, 21.09, -19.75)
CIE-LCHlch(7.55, 28.89, 316.88°)
OKLaboklab(21.21% 0.0501 -0.0557)
OKLCHoklch(21.21% 0.075 312)
XYZxyz(1.4015, 0.8362, 2.9927)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B31 #18310B
analogous
#110B31 #240B31 #310B2B
triadic
#240B31 #31240B #0B3124
tetradic
#240B31 #31110B #18310B #0B2B31
square
#240B31 #31110B #18310B #0B2B31
split-complementary
#240B31 #2B310B #0B3111
monochromatic
#120619 #120619 #240B31 #491663 #6D2195

Accessibility & contrast

On white

17.99
#240B31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240B31
17.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B31#FFFFFF#000000##FFFFFF
##240B311.0017.991.1717.99
#FFFFFF17.991.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001532
Deuteranopia (green-blind)
#081730
Tritanopia (blue-blind)
#23121C
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240b31;
/* rgb */ color: rgb(36, 11, 49);
/* oklch */ color: oklch(21.2% 0.075 312.0);
Tailwind
colors: {
  custom: {
    50: '#604c69',
    500: '#240b31',
    950: '#000000',
  },
}
SCSS
$custom: #240b31;
$custom-light: #604c69;
$custom-dark: #000000;
JSON
{
  "hex": "#240b31",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 49
  },
  "hsl": {
    "h": 279.474,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21214,
    "c": 0.07492,
    "h": 312
  },
  "luminance": 0.00836
}

Semantic roles & 50–950 ramp

primary
#240B31
secondary
#416E2A
accent
#E6417A
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240B31

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

Preview Lab → · Contrast checker → · Palette generator →

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