#240128#240128

#240128 is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.8% C 0.085 H 323.8°. Best body text is #FFFFFF at 18.92:1 contrast (WCAG AA passes).

Color values

HEX#240128
RGBrgb(36, 1, 40)
HSLhsl(294, 95%, 8%)
HSVhsv(294, 98%, 16%)
CMYKcmyk(10%, 97.5%, 0%, 84.3%)
CIE-LABlab(4.97, 23.44, -17.09)
CIE-LCHlch(4.97, 29.01, 323.91°)
OKLaboklab(18.8% 0.0685 -0.0502)
OKLCHoklch(18.8% 0.085 323.8)
XYZxyz(1.1214, 0.5501, 2.0542)
Luminance0.0055 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240128 #052801
analogous
#100128 #240128 #280118
triadic
#240128 #282401 #012824
tetradic
#240128 #281001 #052801 #011828
square
#240128 #281001 #052801 #011828
split-complementary
#240128 #182801 #012810
monochromatic
#1B011E #1B011E #240128 #5A0264 #8F049F

Accessibility & contrast

On white

18.92
#240128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#240128 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240128
18.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240128#FFFFFF#000000##FFFFFF
##2401281.0018.921.1118.92
#FFFFFF18.921.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E29
Deuteranopia (green-blind)
#061227
Tritanopia (blue-blind)
#250713
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #240128;
/* rgb */ color: rgb(36, 1, 40);
/* oklch */ color: oklch(18.8% 0.085 323.8);
Tailwind
colors: {
  custom: {
    50: '#604662',
    500: '#240128',
    950: '#000000',
  },
}
SCSS
$custom: #240128;
$custom-light: #604662;
$custom-dark: #000000;
JSON
{
  "hex": "#240128",
  "rgb": {
    "r": 36,
    "g": 1,
    "b": 40
  },
  "hsl": {
    "h": 293.846,
    "s": 95.122,
    "l": 8.039
  },
  "oklch": {
    "l": 0.18797,
    "c": 0.08496,
    "h": 323.8
  },
  "luminance": 0.0055
}

Semantic roles & 50–950 ramp

primary
#240128
secondary
#1F6F16
accent
#FF293F
background
#F5F3F5
surface
#E9E5EA
border
#C5C1C6
text
#050005
muted
#797679

Preview Lab

Preview with #240128

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

Preview Lab → · Contrast checker → · Palette generator →

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