#240D31#240D31

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

Color values

HEX#240D31
RGBrgb(36, 13, 49)
HSLhsl(278, 58%, 12%)
HSVhsv(278, 73%, 19%)
CMYKcmyk(26.5%, 73.5%, 0%, 80.8%)
CIE-LABlab(7.99, 19.90, -19.05)
CIE-LCHlch(7.99, 27.55, 316.26°)
OKLaboklab(21.54% 0.0471 -0.0536)
OKLCHoklch(21.54% 0.071 311.3)
XYZxyz(1.4258, 0.8847, 3.0008)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D31 #1A310D
analogous
#120D31 #240D31 #310D2C
triadic
#240D31 #31240D #0D3124
tetradic
#240D31 #31120D #1A310D #0D2C31
square
#240D31 #31120D #1A310D #0D2C31
split-complementary
#240D31 #2C310D #0D3112
monochromatic
#120618 #120618 #240D31 #481A61 #6B2792

Accessibility & contrast

On white

17.84
#240D31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#240D31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240D31
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D31#FFFFFF#000000##FFFFFF
##240D311.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021632
Deuteranopia (green-blind)
#0A1830
Tritanopia (blue-blind)
#22141D
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240d31;
/* rgb */ color: rgb(36, 13, 49);
/* oklch */ color: oklch(21.5% 0.071 311.3);
Tailwind
colors: {
  custom: {
    50: '#604d69',
    500: '#240d31',
    950: '#000000',
  },
}
SCSS
$custom: #240d31;
$custom-light: #604d69;
$custom-dark: #000000;
JSON
{
  "hex": "#240d31",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 49
  },
  "hsl": {
    "h": 278.333,
    "s": 58.065,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21538,
    "c": 0.07134,
    "h": 311.3
  },
  "luminance": 0.00885
}

Semantic roles & 50–950 ramp

primary
#240D31
secondary
#446C2E
accent
#E1477E
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240D31

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

Preview Lab → · Contrast checker → · Palette generator →

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