#180C49#180C49

#180C49 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.2% C 0.105 H 282.7°. Best body text is #FFFFFF at 17.68:1 contrast (WCAG AA passes).

Color values

HEX#180C49
RGBrgb(24, 12, 73)
HSLhsl(252, 72%, 17%)
HSVhsv(252, 84%, 29%)
CMYKcmyk(67.1%, 83.6%, 0%, 71.4%)
CIE-LABlab(8.46, 25.57, -35.55)
CIE-LCHlch(8.46, 43.80, 305.73°)
OKLaboklab(22.22% 0.0231 -0.1025)
OKLCHoklch(22.22% 0.105 282.7)
XYZxyz(1.7104, 0.9381, 6.3930)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C49 #3D490C
analogous
#0C1F49 #180C49 #370C49
triadic
#180C49 #49180C #0C4918
tetradic
#180C49 #490C1F #3D490C #0C4937
square
#180C49 #490C1F #3D490C #0C4937
split-complementary
#180C49 #49370C #1F490C
monochromatic
#09041A #09041A #180C49 #29157E #3B1DB2

Accessibility & contrast

On white

17.68
#180C49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#180C49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C49
17.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C49#FFFFFF#000000##FFFFFF
##180C491.0017.681.1917.68
#FFFFFF17.681.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4B
Deuteranopia (green-blind)
#001648
Tritanopia (blue-blind)
#001D2A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #180c49;
/* rgb */ color: rgb(24, 12, 73);
/* oklch */ color: oklch(22.2% 0.105 282.7);
Tailwind
colors: {
  custom: {
    50: '#5d4c7c',
    500: '#180c49',
    950: '#000000',
  },
}
SCSS
$custom: #180c49;
$custom-light: #5d4c7c;
$custom-dark: #000000;
JSON
{
  "hex": "#180c49",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 73
  },
  "hsl": {
    "h": 251.803,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.22222,
    "c": 0.10509,
    "h": 282.7
  },
  "luminance": 0.00938
}

Semantic roles & 50–950 ramp

primary
#180C49
secondary
#73852C
accent
#EE39CB
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #180C49

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

Preview Lab → · Contrast checker → · Palette generator →

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