#180D4F#180D4F

#180D4F is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.1% C 0.112 H 280.6°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#180D4F
RGBrgb(24, 13, 79)
HSLhsl(250, 72%, 18%)
HSVhsv(250, 84%, 31%)
CMYKcmyk(69.6%, 83.5%, 0%, 69%)
CIE-LABlab(9.37, 27.08, -38.22)
CIE-LCHlch(9.37, 46.84, 305.32°)
OKLaboklab(23.07% 0.0206 -0.1103)
OKLCHoklch(23.07% 0.112 280.6)
XYZxyz(1.9314, 1.0464, 7.4958)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180D4F #444F0D
analogous
#0D234F #180D4F #390D4F
triadic
#180D4F #4F180D #0D4F18
tetradic
#180D4F #4F0D23 #444F0D #0D4F39
square
#180D4F #4F0D23 #444F0D #0D4F39
split-complementary
#180D4F #4F390D #234F0D
monochromatic
#08041A #08041A #180D4F #281684 #381EB8

Accessibility & contrast

On white

17.36
#180D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#180D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180D4F
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180D4F#FFFFFF#000000##FFFFFF
##180D4F1.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D51
Deuteranopia (green-blind)
#00184E
Tritanopia (blue-blind)
#00202D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #180d4f;
/* rgb */ color: rgb(24, 13, 79);
/* oklch */ color: oklch(23.1% 0.112 280.6);
Tailwind
colors: {
  custom: {
    50: '#5e4d81',
    500: '#180d4f',
    950: '#000000',
  },
}
SCSS
$custom: #180d4f;
$custom-light: #5e4d81;
$custom-dark: #000000;
JSON
{
  "hex": "#180d4f",
  "rgb": {
    "r": 24,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 250,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.2307,
    "c": 0.11222,
    "h": 280.6
  },
  "luminance": 0.01047
}

Semantic roles & 50–950 ramp

primary
#180D4F
secondary
#7B8A2E
accent
#EE39D0
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010A
muted
#79777C

Preview Lab

Preview with #180D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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