#180C38#180C38

#180C38 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.4% C 0.081 H 289.8°. Best body text is #FFFFFF at 18.28:1 contrast (WCAG AA passes).

Color values

HEX#180C38
RGBrgb(24, 12, 56)
HSLhsl(256, 65%, 13%)
HSVhsv(256, 79%, 22%)
CMYKcmyk(57.1%, 78.6%, 0%, 78%)
CIE-LABlab(6.71, 19.25, -26.32)
CIE-LCHlch(6.71, 32.61, 306.18°)
OKLaboklab(20.36% 0.0274 -0.0758)
OKLCHoklch(20.36% 0.081 289.8)
XYZxyz(1.2218, 0.7426, 3.8196)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C38 #2C380C
analogous
#0C1638 #180C38 #2E0C38
triadic
#180C38 #38180C #0C3818
tetradic
#180C38 #380C16 #2C380C #0C382E
square
#180C38 #380C16 #2C380C #0C382E
split-complementary
#180C38 #382E0C #16380C
monochromatic
#0B0519 #0B0519 #180C38 #2E176A #43229D

Accessibility & contrast

On white

18.28
#180C38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#180C38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C38
18.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C38#FFFFFF#000000##FFFFFF
##180C381.0018.281.1518.28
#FFFFFF18.281.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001639
Deuteranopia (green-blind)
#001437
Tritanopia (blue-blind)
#0D1720
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #180c38;
/* rgb */ color: rgb(24, 12, 56);
/* oklch */ color: oklch(20.4% 0.081 289.8);
Tailwind
colors: {
  custom: {
    50: '#594b6f',
    500: '#180c38',
    950: '#000000',
  },
}
SCSS
$custom: #180c38;
$custom-light: #594b6f;
$custom-dark: #000000;
JSON
{
  "hex": "#180c38",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 56
  },
  "hsl": {
    "h": 256.364,
    "s": 64.706,
    "l": 13.333
  },
  "oklch": {
    "l": 0.2036,
    "c": 0.08061,
    "h": 289.8
  },
  "luminance": 0.00743
}

Semantic roles & 50–950 ramp

primary
#180C38
secondary
#60742C
accent
#E840BA
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #180C38

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

Preview Lab → · Contrast checker → · Palette generator →

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