#180C2C#180C2C

#180C2C is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.2% C 0.062 H 297.5°. Best body text is #FFFFFF at 18.62:1 contrast (WCAG AA passes).

Color values

HEX#180C2C
RGBrgb(24, 12, 44)
HSLhsl(263, 57%, 11%)
HSVhsv(263, 73%, 17%)
CMYKcmyk(45.5%, 72.7%, 0%, 82.7%)
CIE-LABlab(5.77, 14.34, -18.96)
CIE-LCHlch(5.77, 23.77, 307.09°)
OKLaboklab(19.21% 0.0287 -0.0551)
OKLCHoklch(19.21% 0.062 297.5)
XYZxyz(0.9627, 0.6390, 2.4550)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C2C #202C0C
analogous
#0C102C #180C2C #280C2C
triadic
#180C2C #2C180C #0C2C18
tetradic
#180C2C #2C0C10 #202C0C #0C2C28
square
#180C2C #2C0C10 #202C0C #0C2C28
split-complementary
#180C2C #2C280C #102C0C
monochromatic
#0D0718 #0D0718 #180C2C #32195C #4C268C

Accessibility & contrast

On white

18.62
#180C2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180C2C
18.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C2C#FFFFFF#000000##FFFFFF
##180C2C1.0018.621.1318.62
#FFFFFF18.621.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132D
Deuteranopia (green-blind)
#03122B
Tritanopia (blue-blind)
#13131A
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #180c2c;
/* rgb */ color: rgb(24, 12, 44);
/* oklch */ color: oklch(19.2% 0.062 297.5);
Tailwind
colors: {
  custom: {
    50: '#564c65',
    500: '#180c2c',
    950: '#000000',
  },
}
SCSS
$custom: #180c2c;
$custom-light: #564c65;
$custom-dark: #000000;
JSON
{
  "hex": "#180c2c",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 44
  },
  "hsl": {
    "h": 262.5,
    "s": 57.143,
    "l": 10.98
  },
  "oklch": {
    "l": 0.1921,
    "c": 0.0621,
    "h": 297.5
  },
  "luminance": 0.00639
}

Semantic roles & 50–950 ramp

primary
#180C2C
secondary
#51672C
accent
#E047A7
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030105
muted
#78777A

Preview Lab

Preview with #180C2C

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

Preview Lab → · Contrast checker → · Palette generator →

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