#240123#240123

#240123 is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.4% C 0.080 H 329.5°. Best body text is #FFFFFF at 19.03:1 contrast (WCAG AA passes).

Color values

HEX#240123
RGBrgb(36, 1, 35)
HSLhsl(302, 95%, 7%)
HSVhsv(302, 97%, 14%)
CMYKcmyk(0%, 97.2%, 2.8%, 85.9%)
CIE-LABlab(4.68, 21.93, -13.68)
CIE-LCHlch(4.68, 25.85, 328.03°)
OKLaboklab(18.39% 0.0692 -0.0408)
OKLCHoklch(18.39% 0.08 329.5)
XYZxyz(1.0418, 0.5182, 1.6349)
Luminance0.0052 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240123 #012402
analogous
#140124 #240123 #240112
triadic
#240123 #232401 #012324
tetradic
#240123 #241401 #012402 #011224
square
#240123 #241401 #012402 #011224
split-complementary
#240123 #122401 #012414
monochromatic
#1E011D #1E011D #240123 #60035D #9B0497

Accessibility & contrast

On white

19.03
#240123 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#240123 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240123
19.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240123#FFFFFF#000000##FFFFFF
##2401231.0019.031.1019.03
#FFFFFF19.031.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D24
Deuteranopia (green-blind)
#0A1222
Tritanopia (blue-blind)
#260511
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #240123;
/* rgb */ color: rgb(36, 1, 35);
/* oklch */ color: oklch(18.4% 0.080 329.5);
Tailwind
colors: {
  custom: {
    50: '#60465e',
    500: '#240123',
    950: '#000000',
  },
}
SCSS
$custom: #240123;
$custom-light: #60465e;
$custom-dark: #000000;
JSON
{
  "hex": "#240123",
  "rgb": {
    "r": 36,
    "g": 1,
    "b": 35
  },
  "hsl": {
    "h": 301.714,
    "s": 94.595,
    "l": 7.255
  },
  "oklch": {
    "l": 0.18385,
    "c": 0.08036,
    "h": 329.5
  },
  "luminance": 0.00518
}

Semantic roles & 50–950 ramp

primary
#240123
secondary
#166B18
accent
#FF2F29
background
#F5F3F5
surface
#E9E5E9
border
#C5C1C5
text
#050004
muted
#797679

Preview Lab

Preview with #240123

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

Preview Lab → · Contrast checker → · Palette generator →

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