#181D4A#181D4A

#181D4A is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.6% C 0.083 H 274.2°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#181D4A
RGBrgb(24, 29, 74)
HSLhsl(234, 51%, 19%)
HSVhsv(234, 68%, 29%)
CMYKcmyk(67.6%, 60.8%, 0%, 71%)
CIE-LABlab(13.03, 14.09, -28.80)
CIE-LCHlch(13.03, 32.06, 296.08°)
OKLaboklab(25.57% 0.0061 -0.0826)
OKLCHoklch(25.57% 0.083 274.2)
XYZxyz(2.0517, 1.5672, 6.6716)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D4A #4A4518
analogous
#18364A #181D4A #2C184A
triadic
#181D4A #4A181D #1D4A18
tetradic
#181D4A #4A1836 #4A4518 #184A2C
square
#181D4A #4A1836 #4A4518 #184A2C
split-complementary
#181D4A #4A2C18 #364A18
monochromatic
#070917 #090B1C #181D4A #272F78 #3641A6

Accessibility & contrast

On white

15.99
#181D4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#181D4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D4A
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D4A#FFFFFF#000000##FFFFFF
##181D4A1.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01244C
Deuteranopia (green-blind)
#001F49
Tritanopia (blue-blind)
#002830
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181d4a;
/* rgb */ color: rgb(24, 29, 74);
/* oklch */ color: oklch(25.6% 0.083 274.2);
Tailwind
colors: {
  custom: {
    50: '#5b587d',
    500: '#181d4a',
    950: '#000000',
  },
}
SCSS
$custom: #181d4a;
$custom-light: #5b587d;
$custom-dark: #000000;
JSON
{
  "hex": "#181d4a",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 74
  },
  "hsl": {
    "h": 234,
    "s": 51.02,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25574,
    "c": 0.08285,
    "h": 274.2
  },
  "luminance": 0.01567
}

Semantic roles & 50–950 ramp

primary
#181D4A
secondary
#817A3D
accent
#CC4DDA
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #181D4A

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

Preview Lab → · Contrast checker → · Palette generator →

#181D4A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva