#240428#240428

#240428 is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.3% C 0.078 H 323.2°. Best body text is #FFFFFF at 18.70:1 contrast (WCAG AA passes).

Color values

HEX#240428
RGBrgb(36, 4, 40)
HSLhsl(293, 82%, 9%)
HSVhsv(293, 90%, 16%)
CMYKcmyk(10%, 90%, 0%, 84.3%)
CIE-LABlab(5.56, 22.00, -16.17)
CIE-LCHlch(5.56, 27.30, 323.68°)
OKLaboklab(19.35% 0.0624 -0.0466)
OKLCHoklch(19.35% 0.078 323.2)
XYZxyz(1.1539, 0.6152, 2.0650)
Luminance0.0062 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240428 #082804
analogous
#120428 #240428 #28041A
triadic
#240428 #282404 #042824
tetradic
#240428 #281204 #082804 #041A28
square
#240428 #281204 #082804 #041A28
split-complementary
#240428 #1A2804 #042812
monochromatic
#19031C #19031C #240428 #560A60 #880F97

Accessibility & contrast

On white

18.70
#240428 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#240428 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240428
18.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240428#FFFFFF#000000##FFFFFF
##2404281.0018.701.1218.70
#FFFFFF18.701.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001029
Deuteranopia (green-blind)
#091427
Tritanopia (blue-blind)
#250915
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #240428;
/* rgb */ color: rgb(36, 4, 40);
/* oklch */ color: oklch(19.3% 0.078 323.2);
Tailwind
colors: {
  custom: {
    50: '#604862',
    500: '#240428',
    950: '#000000',
  },
}
SCSS
$custom: #240428;
$custom-light: #604862;
$custom-dark: #000000;
JSON
{
  "hex": "#240428",
  "rgb": {
    "r": 36,
    "g": 4,
    "b": 40
  },
  "hsl": {
    "h": 293.333,
    "s": 81.818,
    "l": 8.627
  },
  "oklch": {
    "l": 0.19347,
    "c": 0.07786,
    "h": 323.2
  },
  "luminance": 0.00615
}

Semantic roles & 50–950 ramp

primary
#240428
secondary
#266B1D
accent
#F83046
background
#F5F4F5
surface
#E9E6EA
border
#C5C2C6
text
#050005
muted
#797779

Preview Lab

Preview with #240428

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

Preview Lab → · Contrast checker → · Palette generator →

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