#240434#240434

#240434 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.4% C 0.091 H 311.4°. Best body text is #FFFFFF at 18.39:1 contrast (WCAG AA passes).

Color values

HEX#240434
RGBrgb(36, 4, 52)
HSLhsl(280, 86%, 11%)
HSVhsv(280, 92%, 20%)
CMYKcmyk(30.8%, 92.3%, 0%, 79.6%)
CIE-LABlab(6.41, 25.69, -23.79)
CIE-LCHlch(6.41, 35.01, 317.20°)
OKLaboklab(20.41% 0.06 -0.068)
OKLCHoklch(20.41% 0.091 311.4)
XYZxyz(1.3907, 0.7099, 3.3119)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240434 #143404
analogous
#0C0434 #240434 #34042C
triadic
#240434 #342404 #043424
tetradic
#240434 #340C04 #143404 #042C34
square
#240434 #340C04 #143404 #042C34
split-complementary
#240434 #2C3404 #04340C
monochromatic
#14021C #14021C #240434 #4B086D #730DA6

Accessibility & contrast

On white

18.39
#240434 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240434
18.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240434#FFFFFF#000000##FFFFFF
##2404341.0018.391.1418.39
#FFFFFF18.391.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001335
Deuteranopia (green-blind)
#001533
Tritanopia (blue-blind)
#220F1C
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #240434;
/* rgb */ color: rgb(36, 4, 52);
/* oklch */ color: oklch(20.4% 0.091 311.4);
Tailwind
colors: {
  custom: {
    50: '#61486c',
    500: '#240434',
    950: '#000000',
  },
}
SCSS
$custom: #240434;
$custom-light: #61486c;
$custom-dark: #000000;
JSON
{
  "hex": "#240434",
  "rgb": {
    "r": 36,
    "g": 4,
    "b": 52
  },
  "hsl": {
    "h": 280,
    "s": 85.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.20408,
    "c": 0.09074,
    "h": 311.4
  },
  "luminance": 0.0071
}

Semantic roles & 50–950 ramp

primary
#240434
secondary
#3B761E
accent
#FC2C71
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050007
muted
#79777A

Preview Lab

Preview with #240434

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

Preview Lab → · Contrast checker → · Palette generator →

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