#180C2D#180C2D

#180C2D is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.3% C 0.064 H 296.7°. Best body text is #FFFFFF at 18.59:1 contrast (WCAG AA passes).

Color values

HEX#180C2D
RGBrgb(24, 12, 45)
HSLhsl(262, 58%, 11%)
HSVhsv(262, 73%, 18%)
CMYKcmyk(46.7%, 73.3%, 0%, 82.4%)
CIE-LABlab(5.84, 14.75, -19.60)
CIE-LCHlch(5.84, 24.53, 306.95°)
OKLaboklab(19.3% 0.0287 -0.0569)
OKLCHoklch(19.3% 0.064 296.7)
XYZxyz(0.9817, 0.6466, 2.5552)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C2D #212D0C
analogous
#0C102D #180C2D #280C2D
triadic
#180C2D #2D180C #0C2D18
tetradic
#180C2D #2D0C10 #212D0C #0C2D28
square
#180C2D #2D0C10 #212D0C #0C2D28
split-complementary
#180C2D #2D280C #102D0C
monochromatic
#0D0618 #0D0618 #180C2D #32195D #4C268E

Accessibility & contrast

On white

18.59
#180C2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#180C2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C2D
18.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C2D#FFFFFF#000000##FFFFFF
##180C2D1.0018.591.1318.59
#FFFFFF18.591.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132E
Deuteranopia (green-blind)
#02122C
Tritanopia (blue-blind)
#13131A
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #180c2d;
/* rgb */ color: rgb(24, 12, 45);
/* oklch */ color: oklch(19.3% 0.064 296.7);
Tailwind
colors: {
  custom: {
    50: '#564c66',
    500: '#180c2d',
    950: '#000000',
  },
}
SCSS
$custom: #180c2d;
$custom-light: #564c66;
$custom-dark: #000000;
JSON
{
  "hex": "#180c2d",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 45
  },
  "hsl": {
    "h": 261.818,
    "s": 57.895,
    "l": 11.176
  },
  "oklch": {
    "l": 0.19299,
    "c": 0.06368,
    "h": 296.7
  },
  "luminance": 0.00647
}

Semantic roles & 50–950 ramp

primary
#180C2D
secondary
#53692C
accent
#E147A9
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #180C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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