#180C4C#180C4C

#180C4C is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.109 H 281.7°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#180C4C
RGBrgb(24, 12, 76)
HSLhsl(251, 73%, 17%)
HSVhsv(251, 84%, 30%)
CMYKcmyk(68.4%, 84.2%, 0%, 70.2%)
CIE-LABlab(8.81, 26.62, -37.07)
CIE-LCHlch(8.81, 45.64, 305.69°)
OKLaboklab(22.57% 0.0222 -0.1069)
OKLCHoklch(22.57% 0.109 281.7)
XYZxyz(1.8123, 0.9788, 6.9295)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C4C #404C0C
analogous
#0C204C #180C4C #380C4C
triadic
#180C4C #4C180C #0C4C18
tetradic
#180C4C #4C0C20 #404C0C #0C4C38
square
#180C4C #4C0C20 #404C0C #0C4C38
split-complementary
#180C4C #4C380C #204C0C
monochromatic
#08041A #08041A #180C4C #291481 #391DB6

Accessibility & contrast

On white

17.56
#180C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#180C4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C4C
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C4C#FFFFFF#000000##FFFFFF
##180C4C1.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4E
Deuteranopia (green-blind)
#00174B
Tritanopia (blue-blind)
#001F2B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #180c4c;
/* rgb */ color: rgb(24, 12, 76);
/* oklch */ color: oklch(22.6% 0.109 281.7);
Tailwind
colors: {
  custom: {
    50: '#5d4c7f',
    500: '#180c4c',
    950: '#000000',
  },
}
SCSS
$custom: #180c4c;
$custom-light: #5d4c7f;
$custom-dark: #000000;
JSON
{
  "hex": "#180c4c",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 76
  },
  "hsl": {
    "h": 251.25,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.22573,
    "c": 0.10921,
    "h": 281.7
  },
  "luminance": 0.00979
}

Semantic roles & 50–950 ramp

primary
#180C4C
secondary
#77882C
accent
#EF38CD
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #180C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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