#240226#240226

#240226 is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 18.8% C 0.081 H 325.8°. Best body text is #FFFFFF at 18.89:1 contrast (WCAG AA passes).

Color values

HEX#240226
RGBrgb(36, 2, 38)
HSLhsl(297, 90%, 8%)
HSVhsv(297, 95%, 15%)
CMYKcmyk(5.3%, 94.7%, 0%, 85.1%)
CIE-LABlab(5.04, 22.36, -15.44)
CIE-LCHlch(5.04, 27.17, 325.37°)
OKLaboklab(18.82% 0.0667 -0.0453)
OKLCHoklch(18.82% 0.081 325.8)
XYZxyz(1.0991, 0.5585, 1.8833)
Luminance0.0056 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240226 #042602
analogous
#120226 #240226 #260216
triadic
#240226 #262402 #022624
tetradic
#240226 #261202 #042602 #021626
square
#240226 #261202 #042602 #021626
split-complementary
#240226 #162602 #022612
monochromatic
#1C021D #1C021D #240226 #5B0560 #92089A

Accessibility & contrast

On white

18.89
#240226 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240226
18.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240226#FFFFFF#000000##FFFFFF
##2402261.0018.891.1118.89
#FFFFFF18.891.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240226;
/* rgb */ color: rgb(36, 2, 38);
/* oklch */ color: oklch(18.8% 0.081 325.8);
Tailwind
colors: {
  custom: {
    50: '#604760',
    500: '#240226',
    950: '#000000',
  },
}
SCSS
$custom: #240226;
$custom-light: #604760;
$custom-dark: #000000;
JSON
{
  "hex": "#240226",
  "rgb": {
    "r": 36,
    "g": 2,
    "b": 38
  },
  "hsl": {
    "h": 296.667,
    "s": 90,
    "l": 7.843
  },
  "oklch": {
    "l": 0.18818,
    "c": 0.08058,
    "h": 325.8
  },
  "luminance": 0.00558
}

Semantic roles & 50–950 ramp

primary
#240226
secondary
#1D6B18
accent
#FF2935
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#050005
muted
#797779

Preview Lab

Preview with #240226

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

Preview Lab → · Contrast checker → · Palette generator →

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