#240522#240522

#240522 is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.1% C 0.069 H 330.6°. Best body text is #FFFFFF at 18.75:1 contrast (WCAG AA passes).

Color values

HEX#240522
RGBrgb(36, 5, 34)
HSLhsl(304, 76%, 8%)
HSVhsv(304, 86%, 14%)
CMYKcmyk(0%, 86.1%, 5.6%, 85.9%)
CIE-LABlab(5.41, 19.79, -11.78)
CIE-LCHlch(5.41, 23.03, 329.22°)
OKLaboklab(19.07% 0.0604 -0.0341)
OKLCHoklch(19.07% 0.069 330.6)
XYZxyz(1.0706, 0.5992, 1.5723)
Luminance0.0060 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240522 #052407
analogous
#160524 #240522 #240512
triadic
#240522 #222405 #052224
tetradic
#240522 #241605 #052407 #051224
square
#240522 #241605 #052407 #051224
split-complementary
#240522 #122405 #052416
monochromatic
#1B0419 #1B0419 #240522 #5A0C55 #8F1488

Accessibility & contrast

On white

18.75
#240522 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#240522 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240522
18.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240522#FFFFFF#000000##FFFFFF
##2405221.0018.751.1218.75
#FFFFFF18.751.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#030F23
Deuteranopia (green-blind)
#0D1321
Tritanopia (blue-blind)
#260812
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #240522;
/* rgb */ color: rgb(36, 5, 34);
/* oklch */ color: oklch(19.1% 0.069 330.6);
Tailwind
colors: {
  custom: {
    50: '#60485d',
    500: '#240522',
    950: '#000000',
  },
}
SCSS
$custom: #240522;
$custom-light: #60485d;
$custom-dark: #000000;
JSON
{
  "hex": "#240522",
  "rgb": {
    "r": 36,
    "g": 5,
    "b": 34
  },
  "hsl": {
    "h": 303.871,
    "s": 75.61,
    "l": 8.039
  },
  "oklch": {
    "l": 0.19072,
    "c": 0.06936,
    "h": 330.6
  },
  "luminance": 0.00599
}

Semantic roles & 50–950 ramp

primary
#240522
secondary
#1F6624
accent
#F24236
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#050004
muted
#797779

Preview Lab

Preview with #240522

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

Preview Lab → · Contrast checker → · Palette generator →

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