#180C45#180C45

#180C45 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.8% C 0.100 H 284.1°. Best body text is #FFFFFF at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#180C45
RGBrgb(24, 12, 69)
HSLhsl(253, 70%, 16%)
HSVhsv(253, 83%, 27%)
CMYKcmyk(65.2%, 82.6%, 0%, 72.9%)
CIE-LABlab(8.01, 24.17, -33.50)
CIE-LCHlch(8.01, 41.31, 305.82°)
OKLaboklab(21.76% 0.0243 -0.0965)
OKLCHoklch(21.76% 0.1 284.1)
XYZxyz(1.5820, 0.8867, 5.7169)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C45 #39450C
analogous
#0C1C45 #180C45 #340C45
triadic
#180C45 #45180C #0C4518
tetradic
#180C45 #450C1C #39450C #0C4534
square
#180C45 #450C1C #39450C #0C4534
split-complementary
#180C45 #45340C #1C450C
monochromatic
#09051A #09051A #180C45 #2A1579 #3C1EAD

Accessibility & contrast

On white

17.84
#180C45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#180C45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C45
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C45#FFFFFF#000000##FFFFFF
##180C451.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001947
Deuteranopia (green-blind)
#001644
Tritanopia (blue-blind)
#021C27
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #180c45;
/* rgb */ color: rgb(24, 12, 69);
/* oklch */ color: oklch(21.8% 0.100 284.1);
Tailwind
colors: {
  custom: {
    50: '#5c4c79',
    500: '#180c45',
    950: '#000000',
  },
}
SCSS
$custom: #180c45;
$custom-light: #5c4c79;
$custom-dark: #000000;
JSON
{
  "hex": "#180c45",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 69
  },
  "hsl": {
    "h": 252.632,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21764,
    "c": 0.0995,
    "h": 284.1
  },
  "luminance": 0.00887
}

Semantic roles & 50–950 ramp

primary
#180C45
secondary
#6F812C
accent
#ED3BC8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #180C45

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

Preview Lab → · Contrast checker → · Palette generator →

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