#180C41#180C41

#180C41 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.3% C 0.094 H 285.7°. Best body text is #FFFFFF at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#180C41
RGBrgb(24, 12, 65)
HSLhsl(254, 69%, 15%)
HSVhsv(254, 82%, 25%)
CMYKcmyk(63.1%, 81.5%, 0%, 74.5%)
CIE-LABlab(7.58, 22.73, -31.37)
CIE-LCHlch(7.58, 38.74, 305.92°)
OKLaboklab(21.32% 0.0254 -0.0903)
OKLCHoklch(21.32% 0.094 285.7)
XYZxyz(1.4620, 0.8387, 5.0848)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C41 #35410C
analogous
#0C1A41 #180C41 #320C41
triadic
#180C41 #41180C #0C4118
tetradic
#180C41 #410C1A #35410C #0C4132
square
#180C41 #410C1A #35410C #0C4132
split-complementary
#180C41 #41320C #1A410C
monochromatic
#0A051A #0A051A #180C41 #2B1675 #3E1FA8

Accessibility & contrast

On white

17.98
#180C41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#180C41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C41
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C41#FFFFFF#000000##FFFFFF
##180C411.0017.981.1717.98
#FFFFFF17.981.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001843
Deuteranopia (green-blind)
#001540
Tritanopia (blue-blind)
#061A25
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #180c41;
/* rgb */ color: rgb(24, 12, 65);
/* oklch */ color: oklch(21.3% 0.094 285.7);
Tailwind
colors: {
  custom: {
    50: '#5b4c76',
    500: '#180c41',
    950: '#000000',
  },
}
SCSS
$custom: #180c41;
$custom-light: #5b4c76;
$custom-dark: #000000;
JSON
{
  "hex": "#180c41",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 65
  },
  "hsl": {
    "h": 253.585,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.21318,
    "c": 0.09381,
    "h": 285.7
  },
  "luminance": 0.00839
}

Semantic roles & 50–950 ramp

primary
#180C41
secondary
#6B7D2C
accent
#EC3CC4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180C41

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

Preview Lab → · Contrast checker → · Palette generator →

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