#180C43#180C43

#180C43 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.5% C 0.097 H 284.9°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#180C43
RGBrgb(24, 12, 67)
HSLhsl(253, 70%, 15%)
HSVhsv(253, 82%, 26%)
CMYKcmyk(64.2%, 82.1%, 0%, 73.7%)
CIE-LABlab(7.79, 23.46, -32.44)
CIE-LCHlch(7.79, 40.04, 305.87°)
OKLaboklab(21.54% 0.0248 -0.0934)
OKLCHoklch(21.54% 0.097 284.9)
XYZxyz(1.5210, 0.8623, 5.3954)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C43 #37430C
analogous
#0C1B43 #180C43 #330C43
triadic
#180C43 #43180C #0C4318
tetradic
#180C43 #430C1B #37430C #0C4333
square
#180C43 #430C1B #37430C #0C4333
split-complementary
#180C43 #43330C #1B430C
monochromatic
#09051A #09051A #180C43 #2B1577 #3D1FAB

Accessibility & contrast

On white

17.91
#180C43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180C43
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C43#FFFFFF#000000##FFFFFF
##180C431.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001945
Deuteranopia (green-blind)
#001542
Tritanopia (blue-blind)
#041B26
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #180c43;
/* rgb */ color: rgb(24, 12, 67);
/* oklch */ color: oklch(21.5% 0.097 284.9);
Tailwind
colors: {
  custom: {
    50: '#5b4c78',
    500: '#180c43',
    950: '#000000',
  },
}
SCSS
$custom: #180c43;
$custom-light: #5b4c78;
$custom-dark: #000000;
JSON
{
  "hex": "#180c43",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 67
  },
  "hsl": {
    "h": 253.091,
    "s": 69.62,
    "l": 15.49
  },
  "oklch": {
    "l": 0.2154,
    "c": 0.09666,
    "h": 284.9
  },
  "luminance": 0.00862
}

Semantic roles & 50–950 ramp

primary
#180C43
secondary
#6D7F2C
accent
#EC3BC6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #180C43

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

Preview Lab → · Contrast checker → · Palette generator →

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