#180B41#180B41

#180B41 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.2% C 0.095 H 286.1°. Best body text is #FFFFFF at 18.06:1 contrast (WCAG AA passes).

Color values

HEX#180B41
RGBrgb(24, 11, 65)
HSLhsl(254, 71%, 15%)
HSVhsv(254, 83%, 25%)
CMYKcmyk(63.1%, 83.1%, 0%, 74.5%)
CIE-LABlab(7.36, 23.31, -31.72)
CIE-LCHlch(7.36, 39.37, 306.31°)
OKLaboklab(21.16% 0.0263 -0.0914)
OKLCHoklch(21.16% 0.095 286.1)
XYZxyz(1.4502, 0.8151, 5.0809)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180B41 #34410B
analogous
#0B1941 #180B41 #330B41
triadic
#180B41 #41180B #0B4118
tetradic
#180B41 #410B19 #34410B #0B4133
square
#180B41 #410B19 #34410B #0B4133
split-complementary
#180B41 #41330B #19410B
monochromatic
#0A041A #0A041A #180B41 #2B1475 #3F1DAA

Accessibility & contrast

On white

18.06
#180B41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#180B41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180B41
18.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180B41#FFFFFF#000000##FFFFFF
##180B411.0018.061.1618.06
#FFFFFF18.061.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001843
Deuteranopia (green-blind)
#001540
Tritanopia (blue-blind)
#061A25
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #180b41;
/* rgb */ color: rgb(24, 11, 65);
/* oklch */ color: oklch(21.2% 0.095 286.1);
Tailwind
colors: {
  custom: {
    50: '#5b4b76',
    500: '#180b41',
    950: '#000000',
  },
}
SCSS
$custom: #180b41;
$custom-light: #5b4b76;
$custom-dark: #000000;
JSON
{
  "hex": "#180b41",
  "rgb": {
    "r": 24,
    "g": 11,
    "b": 65
  },
  "hsl": {
    "h": 254.444,
    "s": 71.053,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2116,
    "c": 0.09509,
    "h": 286.1
  },
  "luminance": 0.00815
}

Semantic roles & 50–950 ramp

primary
#180B41
secondary
#6A7E2A
accent
#EE3AC3
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180B41

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

Preview Lab → · Contrast checker → · Palette generator →

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