#180D54#180D54

#180D54 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.7% C 0.119 H 279.2°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#180D54
RGBrgb(24, 13, 84)
HSLhsl(249, 73%, 19%)
HSVhsv(249, 85%, 33%)
CMYKcmyk(71.4%, 84.5%, 0%, 67.1%)
CIE-LABlab(9.97, 28.82, -40.67)
CIE-LCHlch(9.97, 49.85, 305.32°)
OKLaboklab(23.67% 0.0191 -0.1174)
OKLCHoklch(23.67% 0.119 279.2)
XYZxyz(2.1203, 1.1220, 8.4906)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180D54 #49540D
analogous
#0D2654 #180D54 #3C0D54
triadic
#180D54 #54180D #0D5418
tetradic
#180D54 #540D26 #49540D #0D543C
square
#180D54 #540D26 #49540D #0D543C
split-complementary
#180D54 #543C0D #26540D
monochromatic
#08041A #09051F #180D54 #271589 #361DBE

Accessibility & contrast

On white

17.15
#180D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#180D54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180D54
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180D54#FFFFFF#000000##FFFFFF
##180D541.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E56
Deuteranopia (green-blind)
#001953
Tritanopia (blue-blind)
#002230
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #180d54;
/* rgb */ color: rgb(24, 13, 84);
/* oklch */ color: oklch(23.7% 0.119 279.2);
Tailwind
colors: {
  custom: {
    50: '#5f4e85',
    500: '#180d54',
    950: '#000000',
  },
}
SCSS
$custom: #180d54;
$custom-light: #5f4e85;
$custom-dark: #000000;
JSON
{
  "hex": "#180d54",
  "rgb": {
    "r": 24,
    "g": 13,
    "b": 84
  },
  "hsl": {
    "h": 249.296,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.23665,
    "c": 0.11899,
    "h": 279.2
  },
  "luminance": 0.01122
}

Semantic roles & 50–950 ramp

primary
#180D54
secondary
#808F2E
accent
#F038D3
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #180D54

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

Preview Lab → · Contrast checker → · Palette generator →

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