#180A4A#180A4A

#180A4A is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.1% C 0.109 H 282.9°. Best body text is #FFFFFF at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#180A4A
RGBrgb(24, 10, 74)
HSLhsl(253, 76%, 16%)
HSVhsv(253, 86%, 29%)
CMYKcmyk(67.6%, 86.5%, 0%, 71%)
CIE-LABlab(8.18, 27.07, -36.72)
CIE-LCHlch(8.18, 45.62, 306.40°)
OKLaboklab(22.06% 0.0243 -0.1059)
OKLCHoklch(22.06% 0.109 282.9)
XYZxyz(1.7209, 0.9056, 6.5613)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180A4A #3C4A0A
analogous
#0A1C4A #180A4A #380A4A
triadic
#180A4A #4A180A #0A4A18
tetradic
#180A4A #4A0A1C #3C4A0A #0A4A38
square
#180A4A #4A0A1C #3C4A0A #0A4A38
split-complementary
#180A4A #4A380A #1C4A0A
monochromatic
#09041B #09041B #180A4A #291180 #3B19B6

Accessibility & contrast

On white

17.78
#180A4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180A4A
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180A4A#FFFFFF#000000##FFFFFF
##180A4A1.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4C
Deuteranopia (green-blind)
#001649
Tritanopia (blue-blind)
#001D2A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #180a4a;
/* rgb */ color: rgb(24, 10, 74);
/* oklch */ color: oklch(22.1% 0.109 282.9);
Tailwind
colors: {
  custom: {
    50: '#5d4b7d',
    500: '#180a4a',
    950: '#000000',
  },
}
SCSS
$custom: #180a4a;
$custom-light: #5d4b7d;
$custom-dark: #000000;
JSON
{
  "hex": "#180a4a",
  "rgb": {
    "r": 24,
    "g": 10,
    "b": 74
  },
  "hsl": {
    "h": 253.125,
    "s": 76.19,
    "l": 16.471
  },
  "oklch": {
    "l": 0.22058,
    "c": 0.10865,
    "h": 282.9
  },
  "luminance": 0.00906
}

Semantic roles & 50–950 ramp

primary
#180A4A
secondary
#728729
accent
#F335C9
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #180A4A

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

Preview Lab → · Contrast checker → · Palette generator →

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