#180522#180522

#180522 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.9% C 0.062 H 312.3°. Best body text is #FFFFFF at 19.38:1 contrast (WCAG AA passes).

Color values

HEX#180522
RGBrgb(24, 5, 34)
HSLhsl(279, 74%, 8%)
HSVhsv(279, 85%, 13%)
CMYKcmyk(29.4%, 85.3%, 0%, 86.7%)
CIE-LABlab(3.78, 13.20, -14.43)
CIE-LCHlch(3.78, 19.56, 312.43°)
OKLaboklab(16.88% 0.0418 -0.046)
OKLCHoklch(16.88% 0.062 312.3)
XYZxyz(0.7196, 0.4182, 1.5559)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180522 #0F2205
analogous
#090522 #180522 #22051D
triadic
#180522 #221805 #052218
tetradic
#180522 #220905 #0F2205 #051D22
square
#180522 #220905 #0F2205 #051D22
split-complementary
#180522 #1D2205 #052209
monochromatic
#13041B #13041B #180522 #3E0D57 #63158D

Accessibility & contrast

On white

19.38
#180522 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#180522 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180522
19.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180522#FFFFFF#000000##FFFFFF
##1805221.0019.381.0819.38
#FFFFFF19.381.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C23
Deuteranopia (green-blind)
#030E21
Tritanopia (blue-blind)
#170A12
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #180522;
/* rgb */ color: rgb(24, 5, 34);
/* oklch */ color: oklch(16.9% 0.062 312.3);
Tailwind
colors: {
  custom: {
    50: '#54495d',
    500: '#180522',
    950: '#000000',
  },
}
SCSS
$custom: #180522;
$custom-light: #54495d;
$custom-dark: #000000;
JSON
{
  "hex": "#180522",
  "rgb": {
    "r": 24,
    "g": 5,
    "b": 34
  },
  "hsl": {
    "h": 279.31,
    "s": 74.359,
    "l": 7.647
  },
  "oklch": {
    "l": 0.16882,
    "c": 0.06215,
    "h": 312.3
  },
  "luminance": 0.00418
}

Semantic roles & 50–950 ramp

primary
#180522
secondary
#37631F
accent
#F13777
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#030004
muted
#787779

Preview Lab

Preview with #180522

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

Preview Lab → · Contrast checker → · Palette generator →

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