#180D39#180D39

#180D39 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.6% C 0.081 H 288.8°. Best body text is #FFFFFF at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#180D39
RGBrgb(24, 13, 57)
HSLhsl(255, 63%, 14%)
HSVhsv(255, 77%, 22%)
CMYKcmyk(57.9%, 77.2%, 0%, 77.6%)
CIE-LABlab(7.02, 19.07, -26.54)
CIE-LCHlch(7.02, 32.68, 305.70°)
OKLaboklab(20.64% 0.026 -0.0763)
OKLCHoklch(20.64% 0.081 288.8)
XYZxyz(1.2589, 0.7774, 3.9538)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180D39 #2E390D
analogous
#0D1839 #180D39 #2E0D39
triadic
#180D39 #39180D #0D3918
tetradic
#180D39 #390D18 #2E390D #0D392E
square
#180D39 #390D18 #2E390D #0D392E
split-complementary
#180D39 #392E0D #18390D
monochromatic
#0A0619 #0A0619 #180D39 #2D186B #42249D

Accessibility & contrast

On white

18.18
#180D39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180D39
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180D39#FFFFFF#000000##FFFFFF
##180D391.0018.181.1618.18
#FFFFFF18.181.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163A
Deuteranopia (green-blind)
#001438
Tritanopia (blue-blind)
#0C1821
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #180d39;
/* rgb */ color: rgb(24, 13, 57);
/* oklch */ color: oklch(20.6% 0.081 288.8);
Tailwind
colors: {
  custom: {
    50: '#594c70',
    500: '#180d39',
    950: '#000000',
  },
}
SCSS
$custom: #180d39;
$custom-light: #594c70;
$custom-dark: #000000;
JSON
{
  "hex": "#180d39",
  "rgb": {
    "r": 24,
    "g": 13,
    "b": 57
  },
  "hsl": {
    "h": 255,
    "s": 62.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.20641,
    "c": 0.0806,
    "h": 288.8
  },
  "luminance": 0.00777
}

Semantic roles & 50–950 ramp

primary
#180D39
secondary
#63742D
accent
#E642BD
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #180D39

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

Preview Lab → · Contrast checker → · Palette generator →

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