#180C47#180C47

#180C47 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.0% C 0.102 H 283.4°. Best body text is #FFFFFF at 17.76:1 contrast (WCAG AA passes).

Color values

HEX#180C47
RGBrgb(24, 12, 71)
HSLhsl(252, 71%, 16%)
HSVhsv(252, 83%, 28%)
CMYKcmyk(66.2%, 83.1%, 0%, 72.2%)
CIE-LABlab(8.24, 24.87, -34.53)
CIE-LCHlch(8.24, 42.55, 305.77°)
OKLaboklab(21.99% 0.0237 -0.0995)
OKLCHoklch(21.99% 0.102 283.4)
XYZxyz(1.6451, 0.9120, 6.0493)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C47 #3B470C
analogous
#0C1E47 #180C47 #360C47
triadic
#180C47 #47180C #0C4718
tetradic
#180C47 #470C1E #3B470C #0C4736
square
#180C47 #470C1E #3B470C #0C4736
split-complementary
#180C47 #47360C #1E470C
monochromatic
#09041A #09041A #180C47 #2A157B #3B1EB0

Accessibility & contrast

On white

17.76
#180C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#180C47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C47
17.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C47#FFFFFF#000000##FFFFFF
##180C471.0017.761.1817.76
#FFFFFF17.761.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A49
Deuteranopia (green-blind)
#001646
Tritanopia (blue-blind)
#001D29
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #180c47;
/* rgb */ color: rgb(24, 12, 71);
/* oklch */ color: oklch(22.0% 0.102 283.4);
Tailwind
colors: {
  custom: {
    50: '#5c4c7b',
    500: '#180c47',
    950: '#000000',
  },
}
SCSS
$custom: #180c47;
$custom-light: #5c4c7b;
$custom-dark: #000000;
JSON
{
  "hex": "#180c47",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 252.203,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.21992,
    "c": 0.1023,
    "h": 283.4
  },
  "luminance": 0.00912
}

Semantic roles & 50–950 ramp

primary
#180C47
secondary
#71832C
accent
#EE3AC9
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #180C47

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

Preview Lab → · Contrast checker → · Palette generator →

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