#180B3E#180B3E

#180B3E is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.091 H 287.4°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#180B3E
RGBrgb(24, 11, 62)
HSLhsl(255, 70%, 14%)
HSVhsv(255, 82%, 24%)
CMYKcmyk(61.3%, 82.3%, 0%, 75.7%)
CIE-LABlab(7.06, 22.17, -30.08)
CIE-LCHlch(7.06, 37.37, 306.39°)
OKLaboklab(20.83% 0.0271 -0.0867)
OKLCHoklch(20.83% 0.091 287.4)
XYZxyz(1.3656, 0.7813, 4.6353)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180B3E #313E0B
analogous
#0B183E #180B3E #320B3E
triadic
#180B3E #3E180B #0B3E18
tetradic
#180B3E #3E0B18 #313E0B #0B3E32
square
#180B3E #3E0B18 #313E0B #0B3E32
split-complementary
#180B3E #3E320B #183E0B
monochromatic
#0A051A #0A051A #180B3E #2C1472 #401DA6

Accessibility & contrast

On white

18.16
#180B3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180B3E
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180B3E#FFFFFF#000000##FFFFFF
##180B3E1.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173F
Deuteranopia (green-blind)
#00143D
Tritanopia (blue-blind)
#091923
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #180b3e;
/* rgb */ color: rgb(24, 11, 62);
/* oklch */ color: oklch(20.8% 0.091 287.4);
Tailwind
colors: {
  custom: {
    50: '#5a4b74',
    500: '#180b3e',
    950: '#000000',
  },
}
SCSS
$custom: #180b3e;
$custom-light: #5a4b74;
$custom-dark: #000000;
JSON
{
  "hex": "#180b3e",
  "rgb": {
    "r": 24,
    "g": 11,
    "b": 62
  },
  "hsl": {
    "h": 255.294,
    "s": 69.863,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20828,
    "c": 0.09082,
    "h": 287.4
  },
  "luminance": 0.00781
}

Semantic roles & 50–950 ramp

primary
#180B3E
secondary
#667B2A
accent
#ED3BBF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180B3E

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

Preview Lab → · Contrast checker → · Palette generator →

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