#180C3C#180C3C

#180C3C is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.087 H 287.9°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#180C3C
RGBrgb(24, 12, 60)
HSLhsl(255, 67%, 14%)
HSVhsv(255, 80%, 24%)
CMYKcmyk(60%, 80%, 0%, 76.5%)
CIE-LABlab(7.08, 20.83, -28.61)
CIE-LCHlch(7.08, 35.39, 306.05°)
OKLaboklab(20.78% 0.0266 -0.0824)
OKLCHoklch(20.78% 0.087 287.9)
XYZxyz(1.3235, 0.7833, 4.3555)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C3C #303C0C
analogous
#0C183C #180C3C #300C3C
triadic
#180C3C #3C180C #0C3C18
tetradic
#180C3C #3C0C18 #303C0C #0C3C30
square
#180C3C #3C0C18 #303C0C #0C3C30
split-complementary
#180C3C #3C300C #183C0C
monochromatic
#0A051A #0A051A #180C3C #2C166F #4120A2

Accessibility & contrast

On white

18.16
#180C3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180C3C
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C3C#FFFFFF#000000##FFFFFF
##180C3C1.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #180c3c;
/* rgb */ color: rgb(24, 12, 60);
/* oklch */ color: oklch(20.8% 0.087 287.9);
Tailwind
colors: {
  custom: {
    50: '#5a4c72',
    500: '#180c3c',
    950: '#000000',
  },
}
SCSS
$custom: #180c3c;
$custom-light: #5a4c72;
$custom-dark: #000000;
JSON
{
  "hex": "#180c3c",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 60
  },
  "hsl": {
    "h": 255,
    "s": 66.667,
    "l": 14.118
  },
  "oklch": {
    "l": 0.20777,
    "c": 0.08655,
    "h": 287.9
  },
  "luminance": 0.00783
}

Semantic roles & 50–950 ramp

primary
#180C3C
secondary
#65782C
accent
#EA3EBF
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040108
muted
#79777B

Preview Lab

Preview with #180C3C

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

Preview Lab → · Contrast checker → · Palette generator →

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