#180B52#180B52

#180B52 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.2% C 0.118 H 280.2°. Best body text is #FFFFFF at 17.38:1 contrast (WCAG AA passes).

Color values

HEX#180B52
RGBrgb(24, 11, 82)
HSLhsl(251, 76%, 18%)
HSVhsv(251, 87%, 32%)
CMYKcmyk(70.7%, 86.6%, 0%, 67.8%)
CIE-LABlab(9.34, 29.24, -40.34)
CIE-LCHlch(9.34, 49.82, 305.94°)
OKLaboklab(23.16% 0.021 -0.1164)
OKLCHoklch(23.16% 0.118 280.2)
XYZxyz(2.0189, 1.0426, 8.0759)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180B52 #45520B
analogous
#0B2152 #180B52 #3B0B52
triadic
#180B52 #52180B #0B5218
tetradic
#180B52 #520B21 #45520B #0B523B
square
#180B52 #520B21 #45520B #0B523B
split-complementary
#180B52 #523B0B #21520B
monochromatic
#08041B #08041C #180B52 #281288 #3819BE

Accessibility & contrast

On white

17.38
#180B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180B52
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180B52#FFFFFF#000000##FFFFFF
##180B521.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D54
Deuteranopia (green-blind)
#001751
Tritanopia (blue-blind)
#00212F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #180b52;
/* rgb */ color: rgb(24, 11, 82);
/* oklch */ color: oklch(23.2% 0.118 280.2);
Tailwind
colors: {
  custom: {
    50: '#5f4c83',
    500: '#180b52',
    950: '#000000',
  },
}
SCSS
$custom: #180b52;
$custom-light: #5f4c83;
$custom-dark: #000000;
JSON
{
  "hex": "#180b52",
  "rgb": {
    "r": 24,
    "g": 11,
    "b": 82
  },
  "hsl": {
    "h": 250.986,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23156,
    "c": 0.11832,
    "h": 280.2
  },
  "luminance": 0.01043
}

Semantic roles & 50–950 ramp

primary
#180B52
secondary
#7C8E2B
accent
#F335D0
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #180B52

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

Preview Lab → · Contrast checker → · Palette generator →

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