#180A39#180A39

#180A39 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.1% C 0.085 H 290.3°. Best body text is #FFFFFF at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#180A39
RGBrgb(24, 10, 57)
HSLhsl(258, 70%, 13%)
HSVhsv(258, 82%, 22%)
CMYKcmyk(57.9%, 82.5%, 0%, 77.6%)
CIE-LABlab(6.38, 20.70, -27.57)
CIE-LCHlch(6.38, 34.48, 306.90°)
OKLaboklab(20.13% 0.0295 -0.0797)
OKLCHoklch(20.13% 0.085 290.3)
XYZxyz(1.2235, 0.7066, 3.9420)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180A39 #2B390A
analogous
#0A1339 #180A39 #2F0A39
triadic
#180A39 #39180A #0A3918
tetradic
#180A39 #390A13 #2B390A #0A392F
square
#180A39 #390A13 #2B390A #0A392F
split-complementary
#180A39 #392F0A #13390A
monochromatic
#0B051A #0B051A #180A39 #2E136D #441CA1

Accessibility & contrast

On white

18.40
#180A39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#180A39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180A39
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180A39#FFFFFF#000000##FFFFFF
##180A391.0018.401.1418.40
#FFFFFF18.401.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153A
Deuteranopia (green-blind)
#001338
Tritanopia (blue-blind)
#0D1620
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #180a39;
/* rgb */ color: rgb(24, 10, 57);
/* oklch */ color: oklch(20.1% 0.085 290.3);
Tailwind
colors: {
  custom: {
    50: '#594a70',
    500: '#180a39',
    950: '#000000',
  },
}
SCSS
$custom: #180a39;
$custom-light: #594a70;
$custom-dark: #000000;
JSON
{
  "hex": "#180a39",
  "rgb": {
    "r": 24,
    "g": 10,
    "b": 57
  },
  "hsl": {
    "h": 257.872,
    "s": 70.149,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20126,
    "c": 0.085,
    "h": 290.3
  },
  "luminance": 0.00707
}

Semantic roles & 50–950 ramp

primary
#180A39
secondary
#5F7628
accent
#ED3BB8
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #180A39

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

Preview Lab → · Contrast checker → · Palette generator →

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