#181A8A#181A8A

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

Color values

HEX#181A8A
RGBrgb(24, 26, 138)
HSLhsl(239, 70%, 32%)
HSVhsv(239, 83%, 54%)
CMYKcmyk(82.6%, 81.2%, 0%, 45.9%)
CIE-LABlab(19.09, 40.17, -60.81)
CIE-LCHlch(19.09, 72.88, 303.45°)
OKLaboklab(31.98% 0.0001 -0.1761)
OKLCHoklch(31.98% 0.176 270)
XYZxyz(5.3320, 2.7673, 24.2930)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A8A #8A8818
analogous
#18538A #181A8A #4F188A
triadic
#181A8A #8A181A #1A8A18
tetradic
#181A8A #8A1853 #8A8818 #188A4F
square
#181A8A #8A1853 #8A8818 #188A4F
split-complementary
#181A8A #8A4F18 #538A18
monochromatic
#060622 #0F1056 #181A8A #2124BE #3F42DE

Accessibility & contrast

On white

13.52
#181A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#181A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A8A
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A8A#FFFFFF#000000##FFFFFF
##181A8A1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002888
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #181a8a;
/* rgb */ color: rgb(24, 26, 138);
/* oklch */ color: oklch(32.0% 0.176 270.0);
Tailwind
colors: {
  custom: {
    50: '#6d59ad',
    500: '#181a8a',
    950: '#000000',
  },
}
SCSS
$custom: #181a8a;
$custom-light: #6d59ad;
$custom-dark: #000000;
JSON
{
  "hex": "#181a8a",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 238.947,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.31976,
    "c": 0.1761,
    "h": 270
  },
  "luminance": 0.02768
}

Semantic roles & 50–950 ramp

primary
#181A8A
secondary
#BDBB40
accent
#EA3BED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #181A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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