#180C3A#180C3A

#180C3A is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.6% C 0.084 H 288.8°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#180C3A
RGBrgb(24, 12, 58)
HSLhsl(256, 66%, 14%)
HSVhsv(256, 79%, 23%)
CMYKcmyk(58.6%, 79.3%, 0%, 77.3%)
CIE-LABlab(6.89, 20.04, -27.48)
CIE-LCHlch(6.89, 34.01, 306.11°)
OKLaboklab(20.57% 0.027 -0.0791)
OKLCHoklch(20.57% 0.084 288.8)
XYZxyz(1.2717, 0.7626, 4.0824)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C3A #2E3A0C
analogous
#0C173A #180C3A #2F0C3A
triadic
#180C3A #3A180C #0C3A18
tetradic
#180C3A #3A0C17 #2E3A0C #0C3A2F
square
#180C3A #3A0C17 #2E3A0C #0C3A2F
split-complementary
#180C3A #3A2F0C #173A0C
monochromatic
#0A0519 #0A0519 #180C3A #2D166D #42219F

Accessibility & contrast

On white

18.22
#180C3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#180C3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C3A
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C3A#FFFFFF#000000##FFFFFF
##180C3A1.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163B
Deuteranopia (green-blind)
#001439
Tritanopia (blue-blind)
#0C1821
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #180c3a;
/* rgb */ color: rgb(24, 12, 58);
/* oklch */ color: oklch(20.6% 0.084 288.8);
Tailwind
colors: {
  custom: {
    50: '#594c71',
    500: '#180c3a',
    950: '#000000',
  },
}
SCSS
$custom: #180c3a;
$custom-light: #594c71;
$custom-dark: #000000;
JSON
{
  "hex": "#180c3a",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 58
  },
  "hsl": {
    "h": 255.652,
    "s": 65.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.20567,
    "c": 0.0836,
    "h": 288.8
  },
  "luminance": 0.00763
}

Semantic roles & 50–950 ramp

primary
#180C3A
secondary
#63762C
accent
#E93FBC
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #180C3A

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

Preview Lab → · Contrast checker → · Palette generator →

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