#180C4A#180C4A

#180C4A is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.3% C 0.106 H 282.4°. Best body text is #FFFFFF at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#180C4A
RGBrgb(24, 12, 74)
HSLhsl(252, 72%, 17%)
HSVhsv(252, 84%, 29%)
CMYKcmyk(67.6%, 83.8%, 0%, 71%)
CIE-LABlab(8.58, 25.93, -36.06)
CIE-LCHlch(8.58, 44.41, 305.71°)
OKLaboklab(22.34% 0.0228 -0.104)
OKLCHoklch(22.34% 0.106 282.4)
XYZxyz(1.7438, 0.9514, 6.5690)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C4A #3E4A0C
analogous
#0C1F4A #180C4A #370C4A
triadic
#180C4A #4A180C #0C4A18
tetradic
#180C4A #4A0C1F #3E4A0C #0C4A37
square
#180C4A #4A0C1F #3E4A0C #0C4A37
split-complementary
#180C4A #4A370C #1F4A0C
monochromatic
#09041A #09041A #180C4A #29157F #3A1DB3

Accessibility & contrast

On white

17.64
#180C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#180C4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C4A
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C4A#FFFFFF#000000##FFFFFF
##180C4A1.0017.641.1917.64
#FFFFFF17.641.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4C
Deuteranopia (green-blind)
#001649
Tritanopia (blue-blind)
#001E2A
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #180c4a;
/* rgb */ color: rgb(24, 12, 74);
/* oklch */ color: oklch(22.3% 0.106 282.4);
Tailwind
colors: {
  custom: {
    50: '#5d4c7d',
    500: '#180c4a',
    950: '#000000',
  },
}
SCSS
$custom: #180c4a;
$custom-light: #5d4c7d;
$custom-dark: #000000;
JSON
{
  "hex": "#180c4a",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 74
  },
  "hsl": {
    "h": 251.613,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.22339,
    "c": 0.10647,
    "h": 282.4
  },
  "luminance": 0.00952
}

Semantic roles & 50–950 ramp

primary
#180C4A
secondary
#74862C
accent
#EF39CC
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #180C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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