#180B3A#180B3A

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

Color values

HEX#180B3A
RGBrgb(24, 11, 58)
HSLhsl(257, 68%, 14%)
HSVhsv(257, 81%, 23%)
CMYKcmyk(58.6%, 81%, 0%, 77.3%)
CIE-LABlab(6.68, 20.59, -27.82)
CIE-LCHlch(6.68, 34.61, 306.51°)
OKLaboklab(20.4% 0.0281 -0.0803)
OKLCHoklch(20.4% 0.085 289.3)
XYZxyz(1.2599, 0.7390, 4.0784)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180B3A #2D3A0B
analogous
#0B153A #180B3A #2F0B3A
triadic
#180B3A #3A180B #0B3A18
tetradic
#180B3A #3A0B15 #2D3A0B #0B3A2F
square
#180B3A #3A0B15 #2D3A0B #0B3A2F
split-complementary
#180B3A #3A2F0B #153A0B
monochromatic
#0B051A #0B051A #180B3A #2D156D #431FA1

Accessibility & contrast

On white

18.30
#180B3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#180B3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180B3A
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180B3A#FFFFFF#000000##FFFFFF
##180B3A1.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163B
Deuteranopia (green-blind)
#001439
Tritanopia (blue-blind)
#0C1721
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #180b3a;
/* rgb */ color: rgb(24, 11, 58);
/* oklch */ color: oklch(20.4% 0.085 289.3);
Tailwind
colors: {
  custom: {
    50: '#594b71',
    500: '#180b3a',
    950: '#000000',
  },
}
SCSS
$custom: #180b3a;
$custom-light: #594b71;
$custom-dark: #000000;
JSON
{
  "hex": "#180b3a",
  "rgb": {
    "r": 24,
    "g": 11,
    "b": 58
  },
  "hsl": {
    "h": 256.596,
    "s": 68.116,
    "l": 13.529
  },
  "oklch": {
    "l": 0.20397,
    "c": 0.08505,
    "h": 289.3
  },
  "luminance": 0.00739
}

Semantic roles & 50–950 ramp

primary
#180B3A
secondary
#62772A
accent
#EB3DBB
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #180B3A

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

Preview Lab → · Contrast checker → · Palette generator →

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