#181A8D#181A8D

#181A8D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.180 H 269.8°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#181A8D
RGBrgb(24, 26, 141)
HSLhsl(239, 71%, 32%)
HSVhsv(239, 83%, 55%)
CMYKcmyk(83%, 81.6%, 0%, 44.7%)
CIE-LABlab(19.46, 41.18, -62.07)
CIE-LCHlch(19.46, 74.49, 303.56°)
OKLaboklab(32.34% -0.0005 -0.1798)
OKLCHoklch(32.34% 0.18 269.8)
XYZxyz(5.5522, 2.8554, 25.4527)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A8D #8D8B18
analogous
#18558D #181A8D #50188D
triadic
#181A8D #8D181A #1A8D18
tetradic
#181A8D #8D1855 #8D8B18 #188D50
square
#181A8D #8D1855 #8D8B18 #188D50
split-complementary
#181A8D #8D5018 #558D18
monochromatic
#060724 #0F1059 #181A8D #2124C1 #4143DF

Accessibility & contrast

On white

13.37
#181A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#181A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A8D
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A8D#FFFFFF#000000##FFFFFF
##181A8D1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#00298B
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #181a8d;
/* rgb */ color: rgb(24, 26, 141);
/* oklch */ color: oklch(32.3% 0.180 269.8);
Tailwind
colors: {
  custom: {
    50: '#6d59b0',
    500: '#181a8d',
    950: '#000000',
  },
}
SCSS
$custom: #181a8d;
$custom-light: #6d59b0;
$custom-dark: #000000;
JSON
{
  "hex": "#181a8d",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 238.974,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3234,
    "c": 0.17976,
    "h": 269.8
  },
  "luminance": 0.02856
}

Semantic roles & 50–950 ramp

primary
#181A8D
secondary
#BFBD42
accent
#EB3AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #181A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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