#181D8B#181D8B

#181D8B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.175 H 269.7°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#181D8B
RGBrgb(24, 29, 139)
HSLhsl(237, 71%, 32%)
HSVhsv(237, 83%, 55%)
CMYKcmyk(82.7%, 79.1%, 0%, 45.5%)
CIE-LABlab(19.79, 38.84, -60.27)
CIE-LCHlch(19.79, 71.70, 302.80°)
OKLaboklab(32.5% -0.0009 -0.1746)
OKLCHoklch(32.5% 0.175 269.7)
XYZxyz(5.4747, 2.9364, 24.6993)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D8B #8B8618
analogous
#18578B #181D8B #4C188B
triadic
#181D8B #8B181D #1D8B18
tetradic
#181D8B #8B1857 #8B8618 #188B4C
square
#181D8B #8B1857 #8B8618 #188B4C
split-complementary
#181D8B #8B4C18 #578B18
monochromatic
#060723 #0F1257 #181D8B #2128BF #3F46DE

Accessibility & contrast

On white

13.23
#181D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#181D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D8B
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D8B#FFFFFF#000000##FFFFFF
##181D8B1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002A89
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #181d8b;
/* rgb */ color: rgb(24, 29, 139);
/* oklch */ color: oklch(32.5% 0.175 269.7);
Tailwind
colors: {
  custom: {
    50: '#6d5bae',
    500: '#181d8b',
    950: '#000000',
  },
}
SCSS
$custom: #181d8b;
$custom-light: #6d5bae;
$custom-dark: #000000;
JSON
{
  "hex": "#181d8b",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 237.391,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32503,
    "c": 0.17459,
    "h": 269.7
  },
  "luminance": 0.02937
}

Semantic roles & 50–950 ramp

primary
#181D8B
secondary
#BEB940
accent
#E63AED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #181D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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