#180C4F#180C4F

#180C4F is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.113 H 280.8°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#180C4F
RGBrgb(24, 12, 79)
HSLhsl(251, 74%, 18%)
HSVhsv(251, 85%, 31%)
CMYKcmyk(69.6%, 84.8%, 0%, 69%)
CIE-LABlab(9.17, 27.66, -38.56)
CIE-LCHlch(9.17, 47.45, 305.65°)
OKLaboklab(22.93% 0.0213 -0.1113)
OKLCHoklch(22.93% 0.113 280.8)
XYZxyz(1.9190, 1.0215, 7.4917)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C4F #434F0C
analogous
#0C224F #180C4F #390C4F
triadic
#180C4F #4F180C #0C4F18
tetradic
#180C4F #4F0C22 #434F0C #0C4F39
square
#180C4F #4F0C22 #434F0C #0C4F39
split-complementary
#180C4F #4F390C #224F0C
monochromatic
#08041B #08041B #180C4F #281484 #381CB9

Accessibility & contrast

On white

17.44
#180C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180C4F
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C4F#FFFFFF#000000##FFFFFF
##180C4F1.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C51
Deuteranopia (green-blind)
#00174E
Tritanopia (blue-blind)
#00202D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #180c4f;
/* rgb */ color: rgb(24, 12, 79);
/* oklch */ color: oklch(22.9% 0.113 280.8);
Tailwind
colors: {
  custom: {
    50: '#5e4d81',
    500: '#180c4f',
    950: '#000000',
  },
}
SCSS
$custom: #180c4f;
$custom-light: #5e4d81;
$custom-dark: #000000;
JSON
{
  "hex": "#180c4f",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 250.746,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.22928,
    "c": 0.11329,
    "h": 280.8
  },
  "luminance": 0.01022
}

Semantic roles & 50–950 ramp

primary
#180C4F
secondary
#7A8B2C
accent
#F038CF
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010A
muted
#79777C

Preview Lab

Preview with #180C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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