#180B43#180B43

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

Color values

HEX#180B43
RGBrgb(24, 11, 67)
HSLhsl(254, 72%, 15%)
HSVhsv(254, 84%, 26%)
CMYKcmyk(64.2%, 83.6%, 0%, 73.7%)
CIE-LABlab(7.58, 24.05, -32.79)
CIE-LCHlch(7.58, 40.67, 306.26°)
OKLaboklab(21.39% 0.0257 -0.0945)
OKLCHoklch(21.39% 0.098 285.2)
XYZxyz(1.5092, 0.8387, 5.3915)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180B43 #36430B
analogous
#0B1A43 #180B43 #340B43
triadic
#180B43 #43180B #0B4318
tetradic
#180B43 #430B1A #36430B #0B4334
square
#180B43 #430B1A #36430B #0B4334
split-complementary
#180B43 #43340B #1A430B
monochromatic
#09041A #09041A #180B43 #2B1478 #3E1CAC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##180B43#FFFFFF#000000##FFFFFF
##180B431.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)
#001845
Deuteranopia (green-blind)
#001542
Tritanopia (blue-blind)
#041B26
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #180b43;
/* rgb */ color: rgb(24, 11, 67);
/* oklch */ color: oklch(21.4% 0.098 285.2);
Tailwind
colors: {
  custom: {
    50: '#5b4b78',
    500: '#180b43',
    950: '#000000',
  },
}
SCSS
$custom: #180b43;
$custom-light: #5b4b78;
$custom-dark: #000000;
JSON
{
  "hex": "#180b43",
  "rgb": {
    "r": 24,
    "g": 11,
    "b": 67
  },
  "hsl": {
    "h": 253.929,
    "s": 71.795,
    "l": 15.294
  },
  "oklch": {
    "l": 0.21385,
    "c": 0.09791,
    "h": 285.2
  },
  "luminance": 0.00839
}

Semantic roles & 50–950 ramp

primary
#180B43
secondary
#6C802A
accent
#EF39C4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #180B43

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

Preview Lab → · Contrast checker → · Palette generator →

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