#180C42#180C42

#180C42 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.4% C 0.095 H 285.3°. Best body text is #FFFFFF at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#180C42
RGBrgb(24, 12, 66)
HSLhsl(253, 69%, 15%)
HSVhsv(253, 82%, 26%)
CMYKcmyk(63.6%, 81.8%, 0%, 74.1%)
CIE-LABlab(7.68, 23.09, -31.91)
CIE-LCHlch(7.68, 39.39, 305.89°)
OKLaboklab(21.43% 0.0251 -0.0919)
OKLCHoklch(21.43% 0.095 285.3)
XYZxyz(1.4912, 0.8504, 5.2388)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C42 #36420C
analogous
#0C1B42 #180C42 #330C42
triadic
#180C42 #42180C #0C4218
tetradic
#180C42 #420C1B #36420C #0C4233
square
#180C42 #420C1B #36420C #0C4233
split-complementary
#180C42 #42330C #1B420C
monochromatic
#09051A #09051A #180C42 #2B1576 #3E1FAA

Accessibility & contrast

On white

17.95
#180C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#180C42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C42
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C42#FFFFFF#000000##FFFFFF
##180C421.0017.951.1717.95
#FFFFFF17.951.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001541
Tritanopia (blue-blind)
#051B26
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #180c42;
/* rgb */ color: rgb(24, 12, 66);
/* oklch */ color: oklch(21.4% 0.095 285.3);
Tailwind
colors: {
  custom: {
    50: '#5b4c77',
    500: '#180c42',
    950: '#000000',
  },
}
SCSS
$custom: #180c42;
$custom-light: #5b4c77;
$custom-dark: #000000;
JSON
{
  "hex": "#180c42",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 66
  },
  "hsl": {
    "h": 253.333,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.21428,
    "c": 0.09524,
    "h": 285.3
  },
  "luminance": 0.0085
}

Semantic roles & 50–950 ramp

primary
#180C42
secondary
#6C7E2C
accent
#EC3CC5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #180C42

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

Preview Lab → · Contrast checker → · Palette generator →

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