#180C2F#180C2F

#180C2F is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.5% C 0.067 H 295.3°. Best body text is #FFFFFF at 18.54:1 contrast (WCAG AA passes).

Color values

HEX#180C2F
RGBrgb(24, 12, 47)
HSLhsl(261, 59%, 12%)
HSVhsv(261, 74%, 18%)
CMYKcmyk(48.9%, 74.5%, 0%, 81.6%)
CIE-LABlab(5.98, 15.57, -20.87)
CIE-LCHlch(5.98, 26.04, 306.73°)
OKLaboklab(19.48% 0.0286 -0.0604)
OKLCHoklch(19.48% 0.067 295.3)
XYZxyz(1.0211, 0.6623, 2.7628)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C2F #232F0C
analogous
#0C122F #180C2F #2A0C2F
triadic
#180C2F #2F180C #0C2F18
tetradic
#180C2F #2F0C12 #232F0C #0C2F2A
square
#180C2F #2F0C12 #232F0C #0C2F2A
split-complementary
#180C2F #2F2A0C #122F0C
monochromatic
#0C0618 #0C0618 #180C2F #311860 #4A2591

Accessibility & contrast

On white

18.54
#180C2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#180C2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C2F
18.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C2F#FFFFFF#000000##FFFFFF
##180C2F1.0018.541.1318.54
#FFFFFF18.541.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001430
Deuteranopia (green-blind)
#00132E
Tritanopia (blue-blind)
#12141B
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #180c2f;
/* rgb */ color: rgb(24, 12, 47);
/* oklch */ color: oklch(19.5% 0.067 295.3);
Tailwind
colors: {
  custom: {
    50: '#574c68',
    500: '#180c2f',
    950: '#000000',
  },
}
SCSS
$custom: #180c2f;
$custom-light: #574c68;
$custom-dark: #000000;
JSON
{
  "hex": "#180c2f",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 47
  },
  "hsl": {
    "h": 260.571,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.19482,
    "c": 0.06683,
    "h": 295.3
  },
  "luminance": 0.00662
}

Semantic roles & 50–950 ramp

primary
#180C2F
secondary
#556B2C
accent
#E345AD
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #180C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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