#180B42#180B42

#180B42 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.3% C 0.097 H 285.6°. Best body text is #FFFFFF at 18.02:1 contrast (WCAG AA passes).

Color values

HEX#180B42
RGBrgb(24, 11, 66)
HSLhsl(254, 71%, 15%)
HSVhsv(254, 83%, 26%)
CMYKcmyk(63.6%, 83.3%, 0%, 74.1%)
CIE-LABlab(7.47, 23.68, -32.26)
CIE-LCHlch(7.47, 40.02, 306.28°)
OKLaboklab(21.27% 0.026 -0.0929)
OKLCHoklch(21.27% 0.097 285.6)
XYZxyz(1.4794, 0.8268, 5.2348)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180B42 #35420B
analogous
#0B1942 #180B42 #340B42
triadic
#180B42 #42180B #0B4218
tetradic
#180B42 #420B19 #35420B #0B4234
square
#180B42 #420B19 #35420B #0B4234
split-complementary
#180B42 #42340B #19420B
monochromatic
#0A041A #0A041A #180B42 #2B1476 #3E1CAB

Accessibility & contrast

On white

18.02
#180B42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#180B42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180B42
18.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180B42#FFFFFF#000000##FFFFFF
##180B421.0018.021.1718.02
#FFFFFF18.021.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001541
Tritanopia (blue-blind)
#051A25
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #180b42;
/* rgb */ color: rgb(24, 11, 66);
/* oklch */ color: oklch(21.3% 0.097 285.6);
Tailwind
colors: {
  custom: {
    50: '#5b4b77',
    500: '#180b42',
    950: '#000000',
  },
}
SCSS
$custom: #180b42;
$custom-light: #5b4b77;
$custom-dark: #000000;
JSON
{
  "hex": "#180b42",
  "rgb": {
    "r": 24,
    "g": 11,
    "b": 66
  },
  "hsl": {
    "h": 254.182,
    "s": 71.429,
    "l": 15.098
  },
  "oklch": {
    "l": 0.21272,
    "c": 0.09651,
    "h": 285.6
  },
  "luminance": 0.00827
}

Semantic roles & 50–950 ramp

primary
#180B42
secondary
#6B7F2A
accent
#EE3AC3
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #180B42

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

Preview Lab → · Contrast checker → · Palette generator →

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