#180A46#180A46

#180A46 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.6% C 0.103 H 284.4°. Best body text is #FFFFFF at 17.94:1 contrast (WCAG AA passes).

Color values

HEX#180A46
RGBrgb(24, 10, 70)
HSLhsl(254, 75%, 16%)
HSVhsv(254, 86%, 27%)
CMYKcmyk(65.7%, 85.7%, 0%, 72.5%)
CIE-LABlab(7.71, 25.69, -34.69)
CIE-LCHlch(7.71, 43.17, 306.52°)
OKLaboklab(21.58% 0.0257 -0.1)
OKLCHoklch(21.58% 0.103 284.4)
XYZxyz(1.5904, 0.8534, 5.8741)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180A46 #38460A
analogous
#0A1A46 #180A46 #360A46
triadic
#180A46 #46180A #0A4618
tetradic
#180A46 #460A1A #38460A #0A4636
square
#180A46 #460A1A #38460A #0A4636
split-complementary
#180A46 #46360A #1A460A
monochromatic
#09041B #09041B #180A46 #2A127C #3D19B1

Accessibility & contrast

On white

17.94
#180A46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180A46
17.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180A46#FFFFFF#000000##FFFFFF
##180A461.0017.941.1717.94
#FFFFFF17.941.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #180a46;
/* rgb */ color: rgb(24, 10, 70);
/* oklch */ color: oklch(21.6% 0.103 284.4);
Tailwind
colors: {
  custom: {
    50: '#5c4b7a',
    500: '#180a46',
    950: '#000000',
  },
}
SCSS
$custom: #180a46;
$custom-light: #5c4b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#180a46",
  "rgb": {
    "r": 24,
    "g": 10,
    "b": 70
  },
  "hsl": {
    "h": 254,
    "s": 75,
    "l": 15.686
  },
  "oklch": {
    "l": 0.21585,
    "c": 0.10323,
    "h": 284.4
  },
  "luminance": 0.00853
}

Semantic roles & 50–950 ramp

primary
#180A46
secondary
#6E8329
accent
#F236C6
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #180A46

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

Preview Lab → · Contrast checker → · Palette generator →

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