#240431#240431

#240431 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.1% C 0.087 H 314.1°. Best body text is #FFFFFF at 18.47:1 contrast (WCAG AA passes).

Color values

HEX#240431
RGBrgb(36, 4, 49)
HSLhsl(283, 85%, 10%)
HSVhsv(283, 92%, 19%)
CMYKcmyk(26.5%, 91.8%, 0%, 80.8%)
CIE-LABlab(6.18, 24.76, -21.95)
CIE-LCHlch(6.18, 33.09, 318.44°)
OKLaboklab(20.13% 0.0608 -0.0628)
OKLCHoklch(20.13% 0.087 314.1)
XYZxyz(1.3253, 0.6837, 2.9673)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240431 #113104
analogous
#0D0431 #240431 #310427
triadic
#240431 #312404 #043124
tetradic
#240431 #310D04 #113104 #042731
square
#240431 #310D04 #113104 #042731
split-complementary
#240431 #273104 #04310D
monochromatic
#15021C #15021C #240431 #4E096A #770DA2

Accessibility & contrast

On white

18.47
#240431 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#240431 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240431
18.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240431#FFFFFF#000000##FFFFFF
##2404311.0018.471.1418.47
#FFFFFF18.471.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001232
Deuteranopia (green-blind)
#021430
Tritanopia (blue-blind)
#230E1A
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #240431;
/* rgb */ color: rgb(36, 4, 49);
/* oklch */ color: oklch(20.1% 0.087 314.1);
Tailwind
colors: {
  custom: {
    50: '#614869',
    500: '#240431',
    950: '#000000',
  },
}
SCSS
$custom: #240431;
$custom-light: #614869;
$custom-dark: #000000;
JSON
{
  "hex": "#240431",
  "rgb": {
    "r": 36,
    "g": 4,
    "b": 49
  },
  "hsl": {
    "h": 282.667,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.20126,
    "c": 0.08747,
    "h": 314.1
  },
  "luminance": 0.00684
}

Semantic roles & 50–950 ramp

primary
#240431
secondary
#36731D
accent
#FB2D68
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #240431

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

Preview Lab → · Contrast checker → · Palette generator →

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