#180222#180222

#180222 is a very dark, moderate purple. Relative luminance 0.004; OKLCH L 16.2% C 0.071 H 314.0°. Best body text is #FFFFFF at 19.62:1 contrast (WCAG AA passes).

Color values

HEX#180222
RGBrgb(24, 2, 34)
HSLhsl(281, 89%, 7%)
HSVhsv(281, 94%, 13%)
CMYKcmyk(29.4%, 94.1%, 0%, 86.7%)
CIE-LABlab(3.19, 14.40, -15.33)
CIE-LCHlch(3.19, 21.03, 313.20°)
OKLaboklab(16.16% 0.049 -0.0508)
OKLCHoklch(16.16% 0.071 314)
XYZxyz(0.6871, 0.3531, 1.5450)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180222 #0C2202
analogous
#080222 #180222 #22021C
triadic
#180222 #221802 #022218
tetradic
#180222 #220802 #0C2202 #021C22
square
#180222 #220802 #0C2202 #021C22
split-complementary
#180222 #1C2202 #022208
monochromatic
#14021D #14021D #180222 #41055C #6A0996

Accessibility & contrast

On white

19.62
#180222 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#180222 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180222
19.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180222#FFFFFF#000000##FFFFFF
##1802221.0019.621.0719.62
#FFFFFF19.621.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A23
Deuteranopia (green-blind)
#010C21
Tritanopia (blue-blind)
#170710
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #180222;
/* rgb */ color: rgb(24, 2, 34);
/* oklch */ color: oklch(16.2% 0.071 314.0);
Tailwind
colors: {
  custom: {
    50: '#54475d',
    500: '#180222',
    950: '#000000',
  },
}
SCSS
$custom: #180222;
$custom-light: #54475d;
$custom-dark: #000000;
JSON
{
  "hex": "#180222",
  "rgb": {
    "r": 24,
    "g": 2,
    "b": 34
  },
  "hsl": {
    "h": 281.25,
    "s": 88.889,
    "l": 7.059
  },
  "oklch": {
    "l": 0.16155,
    "c": 0.07059,
    "h": 314
  },
  "luminance": 0.00353
}

Semantic roles & 50–950 ramp

primary
#180222
secondary
#316818
accent
#FF296C
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#030004
muted
#787779

Preview Lab

Preview with #180222

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

Preview Lab → · Contrast checker → · Palette generator →

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