#180B46#180B46

#180B46 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.7% C 0.102 H 284.1°. Best body text is #FFFFFF at 17.87:1 contrast (WCAG AA passes).

Color values

HEX#180B46
RGBrgb(24, 11, 70)
HSLhsl(253, 73%, 16%)
HSVhsv(253, 84%, 27%)
CMYKcmyk(65.7%, 84.3%, 0%, 72.5%)
CIE-LABlab(7.91, 25.13, -34.36)
CIE-LCHlch(7.91, 42.57, 306.17°)
OKLaboklab(21.73% 0.0248 -0.099)
OKLCHoklch(21.73% 0.102 284.1)
XYZxyz(1.6015, 0.8756, 5.8778)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180B46 #39460B
analogous
#0B1B46 #180B46 #350B46
triadic
#180B46 #46180B #0B4618
tetradic
#180B46 #460B1B #39460B #0B4635
square
#180B46 #460B1B #39460B #0B4635
split-complementary
#180B46 #46350B #1B460B
monochromatic
#09041A #09041A #180B46 #2A137B #3C1CB0

Accessibility & contrast

On white

17.87
#180B46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#180B46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180B46
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180B46#FFFFFF#000000##FFFFFF
##180B461.0017.871.1817.87
#FFFFFF17.871.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001948
Deuteranopia (green-blind)
#001545
Tritanopia (blue-blind)
#011C28
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #180b46;
/* rgb */ color: rgb(24, 11, 70);
/* oklch */ color: oklch(21.7% 0.102 284.1);
Tailwind
colors: {
  custom: {
    50: '#5c4b7a',
    500: '#180b46',
    950: '#000000',
  },
}
SCSS
$custom: #180b46;
$custom-light: #5c4b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#180b46",
  "rgb": {
    "r": 24,
    "g": 11,
    "b": 70
  },
  "hsl": {
    "h": 253.22,
    "s": 72.84,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21728,
    "c": 0.10209,
    "h": 284.1
  },
  "luminance": 0.00876
}

Semantic roles & 50–950 ramp

primary
#180B46
secondary
#6F822A
accent
#F038C7
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #180B46

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

Preview Lab → · Contrast checker → · Palette generator →

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