#181D5A#181D5A

#181D5A is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.1% C 0.108 H 273.1°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#181D5A
RGBrgb(24, 29, 90)
HSLhsl(235, 58%, 22%)
HSVhsv(235, 73%, 35%)
CMYKcmyk(73.3%, 67.8%, 0%, 64.7%)
CIE-LABlab(14.46, 20.52, -37.35)
CIE-LCHlch(14.46, 42.62, 298.78°)
OKLaboklab(27.08% 0.0059 -0.1078)
OKLCHoklch(27.08% 0.108 273.1)
XYZxyz(2.6609, 1.8109, 9.8802)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D5A #5A5518
analogous
#183E5A #181D5A #34185A
triadic
#181D5A #5A181D #1D5A18
tetradic
#181D5A #5A183E #5A5518 #185A34
square
#181D5A #5A183E #5A5518 #185A34
split-complementary
#181D5A #5A3418 #3E5A18
monochromatic
#060818 #0B0D2A #181D5A #252D8A #323CBB

Accessibility & contrast

On white

15.42
#181D5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#181D5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D5A
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D5A#FFFFFF#000000##FFFFFF
##181D5A1.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#002D38
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181d5a;
/* rgb */ color: rgb(24, 29, 90);
/* oklch */ color: oklch(27.1% 0.108 273.1);
Tailwind
colors: {
  custom: {
    50: '#5f5989',
    500: '#181d5a',
    950: '#000000',
  },
}
SCSS
$custom: #181d5a;
$custom-light: #5f5989;
$custom-dark: #000000;
JSON
{
  "hex": "#181d5a",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 90
  },
  "hsl": {
    "h": 235.455,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27085,
    "c": 0.10794,
    "h": 273.1
  },
  "luminance": 0.01811
}

Semantic roles & 50–950 ramp

primary
#181D5A
secondary
#918A3D
accent
#D547E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #181D5A

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

Preview Lab → · Contrast checker → · Palette generator →

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