#180B47#180B47

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

Color values

HEX#180B47
RGBrgb(24, 11, 71)
HSLhsl(253, 73%, 16%)
HSVhsv(253, 85%, 28%)
CMYKcmyk(66.2%, 84.5%, 0%, 72.2%)
CIE-LABlab(8.02, 25.47, -34.88)
CIE-LCHlch(8.02, 43.19, 306.14°)
OKLaboklab(21.84% 0.0245 -0.1005)
OKLCHoklch(21.84% 0.103 283.7)
XYZxyz(1.6333, 0.8884, 6.0454)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180B47 #3A470B
analogous
#0B1C47 #180B47 #360B47
triadic
#180B47 #47180B #0B4718
tetradic
#180B47 #470B1C #3A470B #0B4736
square
#180B47 #470B1C #3A470B #0B4736
split-complementary
#180B47 #47360B #1C470B
monochromatic
#09041A #09041A #180B47 #2A137C #3C1BB1

Accessibility & contrast

On white

17.83
#180B47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180B47
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180B47#FFFFFF#000000##FFFFFF
##180B471.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001949
Deuteranopia (green-blind)
#001646
Tritanopia (blue-blind)
#001C28
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #180b47;
/* rgb */ color: rgb(24, 11, 71);
/* oklch */ color: oklch(21.8% 0.103 283.7);
Tailwind
colors: {
  custom: {
    50: '#5c4b7b',
    500: '#180b47',
    950: '#000000',
  },
}
SCSS
$custom: #180b47;
$custom-light: #5c4b7b;
$custom-dark: #000000;
JSON
{
  "hex": "#180b47",
  "rgb": {
    "r": 24,
    "g": 11,
    "b": 71
  },
  "hsl": {
    "h": 253,
    "s": 73.171,
    "l": 16.078
  },
  "oklch": {
    "l": 0.21844,
    "c": 0.10347,
    "h": 283.7
  },
  "luminance": 0.00888
}

Semantic roles & 50–950 ramp

primary
#180B47
secondary
#70832A
accent
#F038C8
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #180B47

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

Preview Lab → · Contrast checker → · Palette generator →

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