#180C3D#180C3D

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

Color values

HEX#180C3D
RGBrgb(24, 12, 61)
HSLhsl(255, 67%, 14%)
HSVhsv(255, 80%, 24%)
CMYKcmyk(60.7%, 80.3%, 0%, 76.1%)
CIE-LABlab(7.17, 21.21, -29.18)
CIE-LCHlch(7.17, 36.07, 306.02°)
OKLaboklab(20.88% 0.0263 -0.084)
OKLCHoklch(20.88% 0.088 287.4)
XYZxyz(1.3502, 0.7940, 4.4961)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C3D #313D0C
analogous
#0C193D #180C3D #310C3D
triadic
#180C3D #3D180C #0C3D18
tetradic
#180C3D #3D0C19 #313D0C #0C3D31
square
#180C3D #3D0C19 #313D0C #0C3D31
split-complementary
#180C3D #3D310C #193D0C
monochromatic
#0A051A #0A051A #180C3D #2C1670 #4020A3

Accessibility & contrast

On white

18.12
#180C3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180C3D
18.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C3D#FFFFFF#000000##FFFFFF
##180C3D1.0018.121.1618.12
#FFFFFF18.121.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173E
Deuteranopia (green-blind)
#00143C
Tritanopia (blue-blind)
#091923
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #180c3d;
/* rgb */ color: rgb(24, 12, 61);
/* oklch */ color: oklch(20.9% 0.088 287.4);
Tailwind
colors: {
  custom: {
    50: '#5a4c73',
    500: '#180c3d',
    950: '#000000',
  },
}
SCSS
$custom: #180c3d;
$custom-light: #5a4c73;
$custom-dark: #000000;
JSON
{
  "hex": "#180c3d",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 61
  },
  "hsl": {
    "h": 254.694,
    "s": 67.123,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20883,
    "c": 0.08802,
    "h": 287.4
  },
  "luminance": 0.00794
}

Semantic roles & 50–950 ramp

primary
#180C3D
secondary
#66792C
accent
#EA3EC0
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180C3D

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

Preview Lab → · Contrast checker → · Palette generator →

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