#180C39#180C39

#180C39 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.5% C 0.082 H 289.3°. Best body text is #FFFFFF at 18.25:1 contrast (WCAG AA passes).

Color values

HEX#180C39
RGBrgb(24, 12, 57)
HSLhsl(256, 65%, 14%)
HSVhsv(256, 79%, 22%)
CMYKcmyk(57.9%, 78.9%, 0%, 77.6%)
CIE-LABlab(6.80, 19.65, -26.90)
CIE-LCHlch(6.80, 33.31, 306.14°)
OKLaboklab(20.46% 0.0272 -0.0775)
OKLCHoklch(20.46% 0.082 289.3)
XYZxyz(1.2465, 0.7525, 3.9497)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C39 #2D390C
analogous
#0C1639 #180C39 #2E0C39
triadic
#180C39 #39180C #0C3918
tetradic
#180C39 #390C16 #2D390C #0C392E
square
#180C39 #390C16 #2D390C #0C392E
split-complementary
#180C39 #392E0C #16390C
monochromatic
#0B0519 #0B0519 #180C39 #2D176C #43219E

Accessibility & contrast

On white

18.25
#180C39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#180C39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C39
18.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C39#FFFFFF#000000##FFFFFF
##180C391.0018.251.1518.25
#FFFFFF18.251.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163A
Deuteranopia (green-blind)
#001438
Tritanopia (blue-blind)
#0D1721
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #180c39;
/* rgb */ color: rgb(24, 12, 57);
/* oklch */ color: oklch(20.5% 0.082 289.3);
Tailwind
colors: {
  custom: {
    50: '#594b70',
    500: '#180c39',
    950: '#000000',
  },
}
SCSS
$custom: #180c39;
$custom-light: #594b70;
$custom-dark: #000000;
JSON
{
  "hex": "#180c39",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 57
  },
  "hsl": {
    "h": 256,
    "s": 65.217,
    "l": 13.529
  },
  "oklch": {
    "l": 0.20463,
    "c": 0.08212,
    "h": 289.3
  },
  "luminance": 0.00753
}

Semantic roles & 50–950 ramp

primary
#180C39
secondary
#62752C
accent
#E840BB
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #180C39

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

Preview Lab → · Contrast checker → · Palette generator →

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