#180B4D#180B4D

#180B4D is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.112 H 281.7°. Best body text is #FFFFFF at 17.59:1 contrast (WCAG AA passes).

Color values

HEX#180B4D
RGBrgb(24, 11, 77)
HSLhsl(252, 75%, 17%)
HSVhsv(252, 86%, 30%)
CMYKcmyk(68.8%, 85.7%, 0%, 69.8%)
CIE-LABlab(8.73, 27.54, -37.90)
CIE-LCHlch(8.73, 46.85, 306.01°)
OKLaboklab(22.55% 0.0226 -0.1093)
OKLCHoklch(22.55% 0.112 281.7)
XYZxyz(1.8355, 0.9692, 7.1101)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180B4D #404D0B
analogous
#0B1F4D #180B4D #390B4D
triadic
#180B4D #4D180B #0B4D18
tetradic
#180B4D #4D0B1F #404D0B #0B4D39
square
#180B4D #4D0B1F #404D0B #0B4D39
split-complementary
#180B4D #4D390B #1F4D0B
monochromatic
#08041B #08041B #180B4D #291383 #391AB8

Accessibility & contrast

On white

17.59
#180B4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#180B4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180B4D
17.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180B4D#FFFFFF#000000##FFFFFF
##180B4D1.0017.591.1917.59
#FFFFFF17.591.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4F
Deuteranopia (green-blind)
#00174C
Tritanopia (blue-blind)
#001F2C
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #180b4d;
/* rgb */ color: rgb(24, 11, 77);
/* oklch */ color: oklch(22.6% 0.112 281.7);
Tailwind
colors: {
  custom: {
    50: '#5e4c80',
    500: '#180b4d',
    950: '#000000',
  },
}
SCSS
$custom: #180b4d;
$custom-light: #5e4c80;
$custom-dark: #000000;
JSON
{
  "hex": "#180b4d",
  "rgb": {
    "r": 24,
    "g": 11,
    "b": 77
  },
  "hsl": {
    "h": 251.818,
    "s": 75,
    "l": 17.255
  },
  "oklch": {
    "l": 0.22551,
    "c": 0.11165,
    "h": 281.7
  },
  "luminance": 0.00969
}

Semantic roles & 50–950 ramp

primary
#180B4D
secondary
#77892B
accent
#F236CD
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #180B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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