#180D3C#180D3C

#180D3C is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.085 H 287.4°. Best body text is #FFFFFF at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#180D3C
RGBrgb(24, 13, 60)
HSLhsl(254, 64%, 14%)
HSVhsv(254, 78%, 24%)
CMYKcmyk(60%, 78.3%, 0%, 76.5%)
CIE-LABlab(7.30, 20.24, -28.25)
CIE-LCHlch(7.30, 34.75, 305.62°)
OKLaboklab(20.95% 0.0254 -0.0812)
OKLCHoklch(20.95% 0.085 287.4)
XYZxyz(1.3360, 0.8082, 4.3597)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180D3C #313C0D
analogous
#0D1A3C #180D3C #300D3C
triadic
#180D3C #3C180D #0D3C18
tetradic
#180D3C #3C0D1A #313C0D #0D3C30
square
#180D3C #3C0D1A #313C0D #0D3C30
split-complementary
#180D3C #3C300D #1A3C0D
monochromatic
#0A0519 #0A0519 #180D3C #2C186E #4023A1

Accessibility & contrast

On white

18.08
#180D3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#180D3C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180D3C
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180D3C#FFFFFF#000000##FFFFFF
##180D3C1.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173D
Deuteranopia (green-blind)
#00153B
Tritanopia (blue-blind)
#0A1923
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #180d3c;
/* rgb */ color: rgb(24, 13, 60);
/* oklch */ color: oklch(20.9% 0.085 287.4);
Tailwind
colors: {
  custom: {
    50: '#594c72',
    500: '#180d3c',
    950: '#000000',
  },
}
SCSS
$custom: #180d3c;
$custom-light: #594c72;
$custom-dark: #000000;
JSON
{
  "hex": "#180d3c",
  "rgb": {
    "r": 24,
    "g": 13,
    "b": 60
  },
  "hsl": {
    "h": 254.043,
    "s": 64.384,
    "l": 14.314
  },
  "oklch": {
    "l": 0.2095,
    "c": 0.08511,
    "h": 287.4
  },
  "luminance": 0.00808
}

Semantic roles & 50–950 ramp

primary
#180D3C
secondary
#66782D
accent
#E740C0
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040108
muted
#79777B

Preview Lab

Preview with #180D3C

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

Preview Lab → · Contrast checker → · Palette generator →

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