#180C32#180C32

#180C32 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.8% C 0.071 H 293.3°. Best body text is #FFFFFF at 18.46:1 contrast (WCAG AA passes).

Color values

HEX#180C32
RGBrgb(24, 12, 50)
HSLhsl(259, 61%, 12%)
HSVhsv(259, 76%, 20%)
CMYKcmyk(52%, 76%, 0%, 80.4%)
CIE-LABlab(6.21, 16.81, -22.73)
CIE-LCHlch(6.21, 28.27, 306.48°)
OKLaboklab(19.77% 0.0283 -0.0657)
OKLCHoklch(19.77% 0.071 293.3)
XYZxyz(1.0837, 0.6874, 3.0926)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C32 #26320C
analogous
#0C1332 #180C32 #2B0C32
triadic
#180C32 #32180C #0C3218
tetradic
#180C32 #320C13 #26320C #0C322B
square
#180C32 #320C13 #26320C #0C322B
split-complementary
#180C32 #322B0C #13320C
monochromatic
#0C0619 #0C0619 #180C32 #301863 #472495

Accessibility & contrast

On white

18.46
#180C32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#180C32 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C32
18.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C32#FFFFFF#000000##FFFFFF
##180C321.0018.461.1418.46
#FFFFFF18.461.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001433
Deuteranopia (green-blind)
#001331
Tritanopia (blue-blind)
#11151D
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #180c32;
/* rgb */ color: rgb(24, 12, 50);
/* oklch */ color: oklch(19.8% 0.071 293.3);
Tailwind
colors: {
  custom: {
    50: '#574b6a',
    500: '#180c32',
    950: '#000000',
  },
}
SCSS
$custom: #180c32;
$custom-light: #574b6a;
$custom-dark: #000000;
JSON
{
  "hex": "#180c32",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 50
  },
  "hsl": {
    "h": 258.947,
    "s": 61.29,
    "l": 12.157
  },
  "oklch": {
    "l": 0.19765,
    "c": 0.07149,
    "h": 293.3
  },
  "luminance": 0.00687
}

Semantic roles & 50–950 ramp

primary
#180C32
secondary
#596E2C
accent
#E443B2
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #180C32

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

Preview Lab → · Contrast checker → · Palette generator →

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