#240127#240127

#240127 is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.7% C 0.084 H 324.9°. Best body text is #FFFFFF at 18.94:1 contrast (WCAG AA passes).

Color values

HEX#240127
RGBrgb(36, 1, 39)
HSLhsl(295, 95%, 8%)
HSVhsv(295, 97%, 15%)
CMYKcmyk(7.7%, 97.4%, 0%, 84.7%)
CIE-LABlab(4.91, 23.14, -16.42)
CIE-LCHlch(4.91, 28.37, 324.64°)
OKLaboklab(18.71% 0.0687 -0.0484)
OKLCHoklch(18.71% 0.084 324.9)
XYZxyz(1.1046, 0.5433, 1.9658)
Luminance0.0054 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240127 #042701
analogous
#110127 #240127 #270117
triadic
#240127 #272401 #012724
tetradic
#240127 #271101 #042701 #011727
square
#240127 #271101 #042701 #011727
split-complementary
#240127 #172701 #012711
monochromatic
#1C011E #1C011E #240127 #5B0363 #92049E

Accessibility & contrast

On white

18.94
#240127 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240127
18.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240127#FFFFFF#000000##FFFFFF
##2401271.0018.941.1118.94
#FFFFFF18.941.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E28
Deuteranopia (green-blind)
#071226
Tritanopia (blue-blind)
#250613
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #240127;
/* rgb */ color: rgb(36, 1, 39);
/* oklch */ color: oklch(18.7% 0.084 324.9);
Tailwind
colors: {
  custom: {
    50: '#604661',
    500: '#240127',
    950: '#000000',
  },
}
SCSS
$custom: #240127;
$custom-light: #604661;
$custom-dark: #000000;
JSON
{
  "hex": "#240127",
  "rgb": {
    "r": 36,
    "g": 1,
    "b": 39
  },
  "hsl": {
    "h": 295.263,
    "s": 95,
    "l": 7.843
  },
  "oklch": {
    "l": 0.18712,
    "c": 0.08402,
    "h": 324.9
  },
  "luminance": 0.00543
}

Semantic roles & 50–950 ramp

primary
#240127
secondary
#1D6E16
accent
#FF293A
background
#F5F3F5
surface
#E9E5E9
border
#C5C1C5
text
#050005
muted
#797679

Preview Lab

Preview with #240127

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

Preview Lab → · Contrast checker → · Palette generator →

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