#240126#240126

#240126 is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.6% C 0.083 H 326.0°. Best body text is #FFFFFF at 18.96:1 contrast (WCAG AA passes).

Color values

HEX#240126
RGBrgb(36, 1, 38)
HSLhsl(297, 95%, 8%)
HSVhsv(297, 97%, 15%)
CMYKcmyk(5.3%, 97.4%, 0%, 85.1%)
CIE-LABlab(4.85, 22.83, -15.74)
CIE-LCHlch(4.85, 27.73, 325.41°)
OKLaboklab(18.63% 0.0689 -0.0465)
OKLCHoklch(18.63% 0.083 326)
XYZxyz(1.0882, 0.5368, 1.8796)
Luminance0.0054 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240126 #032601
analogous
#120126 #240126 #260115
triadic
#240126 #262401 #012624
tetradic
#240126 #261201 #032601 #011526
square
#240126 #261201 #032601 #011526
split-complementary
#240126 #152601 #012612
monochromatic
#1C011E #1C011E #240126 #5C0362 #95049D

Accessibility & contrast

On white

18.96
#240126 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240126
18.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240126#FFFFFF#000000##FFFFFF
##2401261.0018.961.1118.96
#FFFFFF18.961.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D27
Deuteranopia (green-blind)
#081225
Tritanopia (blue-blind)
#250612
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #240126;
/* rgb */ color: rgb(36, 1, 38);
/* oklch */ color: oklch(18.6% 0.083 326.0);
Tailwind
colors: {
  custom: {
    50: '#604660',
    500: '#240126',
    950: '#000000',
  },
}
SCSS
$custom: #240126;
$custom-light: #604660;
$custom-dark: #000000;
JSON
{
  "hex": "#240126",
  "rgb": {
    "r": 36,
    "g": 1,
    "b": 38
  },
  "hsl": {
    "h": 296.757,
    "s": 94.872,
    "l": 7.647
  },
  "oklch": {
    "l": 0.18628,
    "c": 0.0831,
    "h": 326
  },
  "luminance": 0.00537
}

Semantic roles & 50–950 ramp

primary
#240126
secondary
#1B6D16
accent
#FF2934
background
#F5F3F5
surface
#E9E5E9
border
#C5C1C5
text
#050005
muted
#797679

Preview Lab

Preview with #240126

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

Preview Lab → · Contrast checker → · Palette generator →

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