#181A8B#181A8B

#181A8B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.177 H 270.0°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#181A8B
RGBrgb(24, 26, 139)
HSLhsl(239, 71%, 32%)
HSVhsv(239, 83%, 55%)
CMYKcmyk(82.7%, 81.3%, 0%, 45.5%)
CIE-LABlab(19.21, 40.51, -61.23)
CIE-LCHlch(19.21, 73.42, 303.49°)
OKLaboklab(32.1% -0.0001 -0.1773)
OKLCHoklch(32.1% 0.177 270)
XYZxyz(5.4047, 2.7964, 24.6760)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A8B #8B8918
analogous
#18538B #181A8B #50188B
triadic
#181A8B #8B181A #1A8B18
tetradic
#181A8B #8B1853 #8B8918 #188B50
square
#181A8B #8B1853 #8B8918 #188B50
split-complementary
#181A8B #8B5018 #538B18
monochromatic
#060623 #0F1057 #181A8B #2124BF #3F42DE

Accessibility & contrast

On white

13.47
#181A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#181A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A8B
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A8B#FFFFFF#000000##FFFFFF
##181A8B1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002989
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #181a8b;
/* rgb */ color: rgb(24, 26, 139);
/* oklch */ color: oklch(32.1% 0.177 270.0);
Tailwind
colors: {
  custom: {
    50: '#6d59ae',
    500: '#181a8b',
    950: '#000000',
  },
}
SCSS
$custom: #181a8b;
$custom-light: #6d59ae;
$custom-dark: #000000;
JSON
{
  "hex": "#181a8b",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 238.957,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32097,
    "c": 0.17732,
    "h": 270
  },
  "luminance": 0.02797
}

Semantic roles & 50–950 ramp

primary
#181A8B
secondary
#BEBC40
accent
#EA3AED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #181A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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