#181D89#181D89

#181D89 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.172 H 269.8°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#181D89
RGBrgb(24, 29, 137)
HSLhsl(237, 70%, 32%)
HSVhsv(237, 82%, 54%)
CMYKcmyk(82.5%, 78.8%, 0%, 46.3%)
CIE-LABlab(19.55, 38.15, -59.41)
CIE-LCHlch(19.55, 70.61, 302.70°)
OKLaboklab(32.27% -0.0006 -0.1721)
OKLCHoklch(32.27% 0.172 269.8)
XYZxyz(5.3299, 2.8784, 23.9367)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D89 #898418
analogous
#185689 #181D89 #4C1889
triadic
#181D89 #89181D #1D8918
tetradic
#181D89 #891856 #898418 #18894C
square
#181D89 #891856 #898418 #18894C
split-complementary
#181D89 #894C18 #568918
monochromatic
#060721 #0F1255 #181D89 #2128BD #3E45DD

Accessibility & contrast

On white

13.33
#181D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#181D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D89
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D89#FFFFFF#000000##FFFFFF
##181D891.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002A87
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #181d89;
/* rgb */ color: rgb(24, 29, 137);
/* oklch */ color: oklch(32.3% 0.172 269.8);
Tailwind
colors: {
  custom: {
    50: '#6c5bad',
    500: '#181d89',
    950: '#000000',
  },
}
SCSS
$custom: #181d89;
$custom-light: #6c5bad;
$custom-dark: #000000;
JSON
{
  "hex": "#181d89",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 237.345,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32267,
    "c": 0.1721,
    "h": 269.8
  },
  "luminance": 0.02879
}

Semantic roles & 50–950 ramp

primary
#181D89
secondary
#BDB740
accent
#E53BED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #181D89

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

Preview Lab → · Contrast checker → · Palette generator →

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