#181D9D#181D9D

#181D9D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.196 H 268.8°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#181D9D
RGBrgb(24, 29, 157)
HSLhsl(238, 73%, 35%)
HSVhsv(238, 85%, 62%)
CMYKcmyk(84.7%, 81.5%, 0%, 38.4%)
CIE-LABlab(21.97, 44.93, -67.79)
CIE-LCHlch(21.97, 81.33, 303.53°)
OKLaboklab(34.66% -0.0042 -0.1964)
OKLCHoklch(34.66% 0.196 268.8)
XYZxyz(6.8998, 3.5064, 32.2049)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D9D #9D9818
analogous
#18609D #181D9D #55189D
triadic
#181D9D #9D181D #1D9D18
tetradic
#181D9D #9D1860 #9D9818 #189D55
square
#181D9D #9D1860 #9D9818 #189D55
split-complementary
#181D9D #9D5518 #609D18
monochromatic
#080933 #101368 #181D9D #2027D2 #4C52E4

Accessibility & contrast

On white

12.34
#181D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#181D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D9D
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D9D#FFFFFF#000000##FFFFFF
##181D9D1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA1
Deuteranopia (green-blind)
#002E9B
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #181d9d;
/* rgb */ color: rgb(24, 29, 157);
/* oklch */ color: oklch(34.7% 0.196 268.8);
Tailwind
colors: {
  custom: {
    50: '#725cbb',
    500: '#181d9d',
    950: '#000000',
  },
}
SCSS
$custom: #181d9d;
$custom-light: #725cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#181d9d",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 157
  },
  "hsl": {
    "h": 237.744,
    "s": 73.481,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34663,
    "c": 0.19642,
    "h": 268.8
  },
  "luminance": 0.03507
}

Semantic roles & 50–950 ramp

primary
#181D9D
secondary
#C5C14B
accent
#E938F0
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #181D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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