#180B56#180B56

#180B56 is a very dark, vivid violet. Relative luminance 0.011; OKLCH L 23.6% C 0.124 H 279.1°. Best body text is #FFFFFF at 17.20:1 contrast (WCAG AA passes).

Color values

HEX#180B56
RGBrgb(24, 11, 86)
HSLhsl(250, 77%, 19%)
HSVhsv(250, 87%, 34%)
CMYKcmyk(72.1%, 87.2%, 0%, 66.3%)
CIE-LABlab(9.84, 30.59, -42.25)
CIE-LCHlch(9.84, 52.16, 305.90°)
OKLaboklab(23.65% 0.0196 -0.122)
OKLCHoklch(23.65% 0.124 279.1)
XYZxyz(2.1755, 1.1052, 8.9010)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180B56 #49560B
analogous
#0B2456 #180B56 #3E0B56
triadic
#180B56 #56180B #0B5618
tetradic
#180B56 #560B24 #49560B #0B563E
square
#180B56 #560B24 #49560B #0B563E
split-complementary
#180B56 #563E0B #24560B
monochromatic
#08031B #090420 #180B56 #27128C #3619C3

Accessibility & contrast

On white

17.20
#180B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#180B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180B56
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180B56#FFFFFF#000000##FFFFFF
##180B561.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E58
Deuteranopia (green-blind)
#001855
Tritanopia (blue-blind)
#002231
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #180b56;
/* rgb */ color: rgb(24, 11, 86);
/* oklch */ color: oklch(23.6% 0.124 279.1);
Tailwind
colors: {
  custom: {
    50: '#604d87',
    500: '#180b56',
    950: '#000000',
  },
}
SCSS
$custom: #180b56;
$custom-light: #604d87;
$custom-dark: #000000;
JSON
{
  "hex": "#180b56",
  "rgb": {
    "r": 24,
    "g": 11,
    "b": 86
  },
  "hsl": {
    "h": 250.4,
    "s": 77.32,
    "l": 19.02
  },
  "oklch": {
    "l": 0.23648,
    "c": 0.12357,
    "h": 279.1
  },
  "luminance": 0.01105
}

Semantic roles & 50–950 ramp

primary
#180B56
secondary
#80912B
accent
#F434D3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#05010B
muted
#7A777C

Preview Lab

Preview with #180B56

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

Preview Lab → · Contrast checker → · Palette generator →

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