#180C22#180C22

#180C22 is a very dark, muted violet. Relative luminance 0.006; OKLCH L 18.4% C 0.046 H 307.7°. Best body text is #FFFFFF at 18.84:1 contrast (WCAG AA passes).

Color values

HEX#180C22
RGBrgb(24, 12, 34)
HSLhsl(273, 48%, 9%)
HSVhsv(273, 65%, 13%)
CMYKcmyk(29.4%, 64.7%, 0%, 86.7%)
CIE-LABlab(5.17, 10.35, -12.29)
CIE-LCHlch(5.17, 16.07, 310.08°)
OKLaboklab(18.39% 0.0281 -0.0364)
OKLCHoklch(18.39% 0.046 307.7)
XYZxyz(0.7968, 0.5726, 1.5816)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C22 #16220C
analogous
#0D0C22 #180C22 #220C21
triadic
#180C22 #22180C #0C2218
tetradic
#180C22 #220D0C #16220C #0C2122
square
#180C22 #220D0C #16220C #0C2122
split-complementary
#180C22 #21220C #0C220D
monochromatic
#100817 #100817 #180C22 #381C4F #582C7C

Accessibility & contrast

On white

18.84
#180C22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#180C22 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C22
18.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C22#FFFFFF#000000##FFFFFF
##180C221.0018.841.1118.84
#FFFFFF18.841.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071123
Deuteranopia (green-blind)
#091121
Tritanopia (blue-blind)
#171015
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #180c22;
/* rgb */ color: rgb(24, 12, 34);
/* oklch */ color: oklch(18.4% 0.046 307.7);
Tailwind
colors: {
  custom: {
    50: '#544c5d',
    500: '#180c22',
    950: '#000000',
  },
}
SCSS
$custom: #180c22;
$custom-light: #544c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#180c22",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 34
  },
  "hsl": {
    "h": 272.727,
    "s": 47.826,
    "l": 9.02
  },
  "oklch": {
    "l": 0.18392,
    "c": 0.04601,
    "h": 307.7
  },
  "luminance": 0.00573
}

Semantic roles & 50–950 ramp

primary
#180C22
secondary
#435C2E
accent
#D7508E
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#030104
muted
#787779

Preview Lab

Preview with #180C22

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

Preview Lab → · Contrast checker → · Palette generator →

#180C22 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva