#181D8D#181D8D

#181D8D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.177 H 269.6°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#181D8D
RGBrgb(24, 29, 141)
HSLhsl(237, 71%, 32%)
HSVhsv(237, 83%, 55%)
CMYKcmyk(83%, 79.4%, 0%, 44.7%)
CIE-LABlab(20.03, 39.53, -61.13)
CIE-LCHlch(20.03, 72.80, 302.89°)
OKLaboklab(32.74% -0.0013 -0.1771)
OKLCHoklch(32.74% 0.177 269.6)
XYZxyz(5.6221, 2.9953, 25.4760)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D8D #8D8818
analogous
#18578D #181D8D #4E188D
triadic
#181D8D #8D181D #1D8D18
tetradic
#181D8D #8D1857 #8D8818 #188D4E
square
#181D8D #8D1857 #8D8818 #188D4E
split-complementary
#181D8D #8D4E18 #578D18
monochromatic
#060724 #0F1259 #181D8D #2128C1 #4148DF

Accessibility & contrast

On white

13.13
#181D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#181D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D8D
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D8D#FFFFFF#000000##FFFFFF
##181D8D1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002A8B
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #181d8d;
/* rgb */ color: rgb(24, 29, 141);
/* oklch */ color: oklch(32.7% 0.177 269.6);
Tailwind
colors: {
  custom: {
    50: '#6d5bb0',
    500: '#181d8d',
    950: '#000000',
  },
}
SCSS
$custom: #181d8d;
$custom-light: #6d5bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#181d8d",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 237.436,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3274,
    "c": 0.17707,
    "h": 269.6
  },
  "luminance": 0.02996
}

Semantic roles & 50–950 ramp

primary
#181D8D
secondary
#BFBA42
accent
#E63AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #181D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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