#180B51#180B51

#180B51 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.117 H 280.5°. Best body text is #FFFFFF at 17.42:1 contrast (WCAG AA passes).

Color values

HEX#180B51
RGBrgb(24, 11, 81)
HSLhsl(251, 76%, 18%)
HSVhsv(251, 86%, 32%)
CMYKcmyk(70.4%, 86.4%, 0%, 68.2%)
CIE-LABlab(9.22, 28.90, -39.86)
CIE-LCHlch(9.22, 49.23, 305.95°)
OKLaboklab(23.03% 0.0213 -0.115)
OKLCHoklch(23.03% 0.117 280.5)
XYZxyz(1.9811, 1.0275, 7.8769)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180B51 #44510B
analogous
#0B2151 #180B51 #3B0B51
triadic
#180B51 #51180B #0B5118
tetradic
#180B51 #510B21 #44510B #0B513B
square
#180B51 #510B21 #44510B #0B513B
split-complementary
#180B51 #513B0B #21510B
monochromatic
#08041B #08041B #180B51 #281287 #381ABD

Accessibility & contrast

On white

17.42
#180B51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#180B51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180B51
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180B51#FFFFFF#000000##FFFFFF
##180B511.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C53
Deuteranopia (green-blind)
#001750
Tritanopia (blue-blind)
#00202E
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #180b51;
/* rgb */ color: rgb(24, 11, 81);
/* oklch */ color: oklch(23.0% 0.117 280.5);
Tailwind
colors: {
  custom: {
    50: '#5f4c83',
    500: '#180b51',
    950: '#000000',
  },
}
SCSS
$custom: #180b51;
$custom-light: #5f4c83;
$custom-dark: #000000;
JSON
{
  "hex": "#180b51",
  "rgb": {
    "r": 24,
    "g": 11,
    "b": 81
  },
  "hsl": {
    "h": 251.143,
    "s": 76.087,
    "l": 18.039
  },
  "oklch": {
    "l": 0.23034,
    "c": 0.11699,
    "h": 280.5
  },
  "luminance": 0.01028
}

Semantic roles & 50–950 ramp

primary
#180B51
secondary
#7B8D2B
accent
#F335CF
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #180B51

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

Preview Lab → · Contrast checker → · Palette generator →

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