#240331#240331

#240331 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.0% C 0.089 H 314.4°. Best body text is #FFFFFF at 18.54:1 contrast (WCAG AA passes).

Color values

HEX#240331
RGBrgb(36, 3, 49)
HSLhsl(283, 88%, 10%)
HSVhsv(283, 94%, 19%)
CMYKcmyk(26.5%, 93.9%, 0%, 80.8%)
CIE-LABlab(5.98, 25.27, -22.27)
CIE-LCHlch(5.98, 33.68, 318.62°)
OKLaboklab(19.96% 0.0625 -0.064)
OKLCHoklch(19.96% 0.089 314.4)
XYZxyz(1.3144, 0.6620, 2.9637)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240331 #103103
analogous
#0D0331 #240331 #310327
triadic
#240331 #312403 #033124
tetradic
#240331 #310D03 #103103 #032731
square
#240331 #310D03 #103103 #032731
split-complementary
#240331 #273103 #03310D
monochromatic
#15021D #15021D #240331 #4E076B #790AA4

Accessibility & contrast

On white

18.54
#240331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#240331 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240331
18.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240331#FFFFFF#000000##FFFFFF
##2403311.0018.541.1318.54
#FFFFFF18.541.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001132
Deuteranopia (green-blind)
#011430
Tritanopia (blue-blind)
#230D1A
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #240331;
/* rgb */ color: rgb(36, 3, 49);
/* oklch */ color: oklch(20.0% 0.089 314.4);
Tailwind
colors: {
  custom: {
    50: '#614769',
    500: '#240331',
    950: '#000000',
  },
}
SCSS
$custom: #240331;
$custom-light: #614769;
$custom-dark: #000000;
JSON
{
  "hex": "#240331",
  "rgb": {
    "r": 36,
    "g": 3,
    "b": 49
  },
  "hsl": {
    "h": 283.043,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.19962,
    "c": 0.08945,
    "h": 314.4
  },
  "luminance": 0.00662
}

Semantic roles & 50–950 ramp

primary
#240331
secondary
#35741B
accent
#FF2966
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #240331

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

Preview Lab → · Contrast checker → · Palette generator →

#240331 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva