#180C35#180C35

#180C35 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.1% C 0.076 H 291.5°. Best body text is #FFFFFF at 18.38:1 contrast (WCAG AA passes).

Color values

HEX#180C35
RGBrgb(24, 12, 53)
HSLhsl(258, 63%, 13%)
HSVhsv(258, 77%, 21%)
CMYKcmyk(54.7%, 77.4%, 0%, 79.2%)
CIE-LABlab(6.45, 18.04, -24.55)
CIE-LCHlch(6.45, 30.46, 306.31°)
OKLaboklab(20.06% 0.0279 -0.0708)
OKLCHoklch(20.06% 0.076 291.5)
XYZxyz(1.1506, 0.7141, 3.4447)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C35 #29350C
analogous
#0C1435 #180C35 #2C0C35
triadic
#180C35 #35180C #0C3518
tetradic
#180C35 #350C14 #29350C #0C352C
square
#180C35 #350C14 #29350C #0C352C
split-complementary
#180C35 #352C0C #14350C
monochromatic
#0B0619 #0B0619 #180C35 #2F1767 #452399

Accessibility & contrast

On white

18.38
#180C35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#180C35 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C35
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C35#FFFFFF#000000##FFFFFF
##180C351.0018.381.1418.38
#FFFFFF18.381.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001536
Deuteranopia (green-blind)
#001334
Tritanopia (blue-blind)
#0F161F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #180c35;
/* rgb */ color: rgb(24, 12, 53);
/* oklch */ color: oklch(20.1% 0.076 291.5);
Tailwind
colors: {
  custom: {
    50: '#584b6d',
    500: '#180c35',
    950: '#000000',
  },
}
SCSS
$custom: #180c35;
$custom-light: #584b6d;
$custom-dark: #000000;
JSON
{
  "hex": "#180c35",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 53
  },
  "hsl": {
    "h": 257.561,
    "s": 63.077,
    "l": 12.745
  },
  "oklch": {
    "l": 0.20058,
    "c": 0.07609,
    "h": 291.5
  },
  "luminance": 0.00714
}

Semantic roles & 50–950 ramp

primary
#180C35
secondary
#5D712C
accent
#E642B6
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030107
muted
#78777A

Preview Lab

Preview with #180C35

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

Preview Lab → · Contrast checker → · Palette generator →

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