#180A42#180A42

#180A42 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.098 H 286.0°. Best body text is #FFFFFF at 18.09:1 contrast (WCAG AA passes).

Color values

HEX#180A42
RGBrgb(24, 10, 66)
HSLhsl(255, 74%, 15%)
HSVhsv(255, 85%, 26%)
CMYKcmyk(63.6%, 84.8%, 0%, 74.1%)
CIE-LABlab(7.27, 24.24, -32.59)
CIE-LCHlch(7.27, 40.62, 306.64°)
OKLaboklab(21.12% 0.0269 -0.0939)
OKLCHoklch(21.12% 0.098 286)
XYZxyz(1.4683, 0.8045, 5.2311)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180A42 #34420A
analogous
#0A1842 #180A42 #340A42
triadic
#180A42 #42180A #0A4218
tetradic
#180A42 #420A18 #34420A #0A4234
square
#180A42 #420A18 #34420A #0A4234
split-complementary
#180A42 #42340A #18420A
monochromatic
#0A041B #0A041B #180A42 #2B1277 #3F1AAC

Accessibility & contrast

On white

18.09
#180A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180A42
18.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180A42#FFFFFF#000000##FFFFFF
##180A421.0018.091.1618.09
#FFFFFF18.091.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #180a42;
/* rgb */ color: rgb(24, 10, 66);
/* oklch */ color: oklch(21.1% 0.098 286.0);
Tailwind
colors: {
  custom: {
    50: '#5b4b77',
    500: '#180a42',
    950: '#000000',
  },
}
SCSS
$custom: #180a42;
$custom-light: #5b4b77;
$custom-dark: #000000;
JSON
{
  "hex": "#180a42",
  "rgb": {
    "r": 24,
    "g": 10,
    "b": 66
  },
  "hsl": {
    "h": 255,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.21122,
    "c": 0.09772,
    "h": 286
  },
  "luminance": 0.00805
}

Semantic roles & 50–950 ramp

primary
#180A42
secondary
#6A7F29
accent
#F037C2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #180A42

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

Preview Lab → · Contrast checker → · Palette generator →

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