#180A47#180A47

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

Color values

HEX#180A47
RGBrgb(24, 10, 71)
HSLhsl(254, 75%, 16%)
HSVhsv(254, 86%, 28%)
CMYKcmyk(66.2%, 85.9%, 0%, 72.2%)
CIE-LABlab(7.82, 26.05, -35.21)
CIE-LCHlch(7.82, 43.80, 306.49°)
OKLaboklab(21.7% 0.0253 -0.1015)
OKLCHoklch(21.7% 0.105 284)
XYZxyz(1.6222, 0.8661, 6.0417)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180A47 #39470A
analogous
#0A1A47 #180A47 #360A47
triadic
#180A47 #47180A #0A4718
tetradic
#180A47 #470A1A #39470A #0A4736
square
#180A47 #470A1A #39470A #0A4736
split-complementary
#180A47 #47360A #1A470A
monochromatic
#09041B #09041B #180A47 #2A127D #3C19B2

Accessibility & contrast

On white

17.90
#180A47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180A47
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180A47#FFFFFF#000000##FFFFFF
##180A471.0017.901.1717.90
#FFFFFF17.901.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001949
Deuteranopia (green-blind)
#001546
Tritanopia (blue-blind)
#001C28
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #180a47;
/* rgb */ color: rgb(24, 10, 71);
/* oklch */ color: oklch(21.7% 0.105 284.0);
Tailwind
colors: {
  custom: {
    50: '#5c4b7b',
    500: '#180a47',
    950: '#000000',
  },
}
SCSS
$custom: #180a47;
$custom-light: #5c4b7b;
$custom-dark: #000000;
JSON
{
  "hex": "#180a47",
  "rgb": {
    "r": 24,
    "g": 10,
    "b": 71
  },
  "hsl": {
    "h": 253.77,
    "s": 75.309,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21702,
    "c": 0.10459,
    "h": 284
  },
  "luminance": 0.00866
}

Semantic roles & 50–950 ramp

primary
#180A47
secondary
#6F8429
accent
#F236C7
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #180A47

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

Preview Lab → · Contrast checker → · Palette generator →

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