#181D8C#181D8C

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

Color values

HEX#181D8C
RGBrgb(24, 29, 140)
HSLhsl(237, 71%, 32%)
HSVhsv(237, 83%, 55%)
CMYKcmyk(82.9%, 79.3%, 0%, 45.1%)
CIE-LABlab(19.91, 39.19, -60.70)
CIE-LCHlch(19.91, 72.25, 302.85°)
OKLaboklab(32.62% -0.0011 -0.1758)
OKLCHoklch(32.62% 0.176 269.6)
XYZxyz(5.5481, 2.9657, 25.0859)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D8C #8C8718
analogous
#18578C #181D8C #4D188C
triadic
#181D8C #8C181D #1D8C18
tetradic
#181D8C #8C1857 #8C8718 #188C4D
square
#181D8C #8C1857 #8C8718 #188C4D
split-complementary
#181D8C #8C4D18 #578C18
monochromatic
#060724 #0F1258 #181D8C #2128C0 #4047DE

Accessibility & contrast

On white

13.18
#181D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181D8C
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D8C#FFFFFF#000000##FFFFFF
##181D8C1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002A8A
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #181d8c;
/* rgb */ color: rgb(24, 29, 140);
/* oklch */ color: oklch(32.6% 0.176 269.6);
Tailwind
colors: {
  custom: {
    50: '#6d5baf',
    500: '#181d8c',
    950: '#000000',
  },
}
SCSS
$custom: #181d8c;
$custom-light: #6d5baf;
$custom-dark: #000000;
JSON
{
  "hex": "#181d8c",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 140
  },
  "hsl": {
    "h": 237.414,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32622,
    "c": 0.17583,
    "h": 269.6
  },
  "luminance": 0.02966
}

Semantic roles & 50–950 ramp

primary
#181D8C
secondary
#BFB941
accent
#E63AED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080411
muted
#7B7980

Preview Lab

Preview with #181D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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