#181E8B#181E8B

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

Color values

HEX#181E8B
RGBrgb(24, 30, 139)
HSLhsl(237, 71%, 32%)
HSVhsv(237, 83%, 55%)
CMYKcmyk(82.7%, 78.4%, 0%, 45.5%)
CIE-LABlab(19.99, 38.27, -59.94)
CIE-LCHlch(19.99, 71.11, 302.56°)
OKLaboklab(32.65% -0.0012 -0.1736)
OKLCHoklch(32.65% 0.174 269.6)
XYZxyz(5.4996, 2.9862, 24.7076)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E8B #8B8518
analogous
#18578B #181E8B #4C188B
triadic
#181E8B #8B181E #1E8B18
tetradic
#181E8B #8B1857 #8B8518 #188B4C
square
#181E8B #8B1857 #8B8518 #188B4C
split-complementary
#181E8B #8B4C18 #578B18
monochromatic
#060723 #0F1357 #181E8B #2129BF #3F48DE

Accessibility & contrast

On white

13.15
#181E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181E8B
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E8B#FFFFFF#000000##FFFFFF
##181E8B1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181e8b;
/* rgb */ color: rgb(24, 30, 139);
/* oklch */ color: oklch(32.6% 0.174 269.6);
Tailwind
colors: {
  custom: {
    50: '#6d5bae',
    500: '#181e8b',
    950: '#000000',
  },
}
SCSS
$custom: #181e8b;
$custom-light: #6d5bae;
$custom-dark: #000000;
JSON
{
  "hex": "#181e8b",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 236.87,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32645,
    "c": 0.17364,
    "h": 269.6
  },
  "luminance": 0.02987
}

Semantic roles & 50–950 ramp

primary
#181E8B
secondary
#BEB840
accent
#E43AED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #181E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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