#181A9D#181A9D

#181A9D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.199 H 268.9°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#181A9D
RGBrgb(24, 26, 157)
HSLhsl(239, 73%, 35%)
HSVhsv(239, 85%, 62%)
CMYKcmyk(84.7%, 83.4%, 0%, 38.4%)
CIE-LABlab(21.46, 46.42, -68.64)
CIE-LCHlch(21.46, 82.87, 304.07°)
OKLaboklab(34.31% -0.0037 -0.1988)
OKLCHoklch(34.31% 0.199 268.9)
XYZxyz(6.8298, 3.3665, 32.1816)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A9D #9D9B18
analogous
#185C9D #181A9D #59189D
triadic
#181A9D #9D181A #1A9D18
tetradic
#181A9D #9D185C #9D9B18 #189D59
square
#181A9D #9D185C #9D9B18 #189D59
split-complementary
#181A9D #9D5918 #5C9D18
monochromatic
#080833 #101168 #181A9D #2023D2 #4C4EE4

Accessibility & contrast

On white

12.55
#181A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#181A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A9D
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A9D#FFFFFF#000000##FFFFFF
##181A9D1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA1
Deuteranopia (green-blind)
#002C9B
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #181a9d;
/* rgb */ color: rgb(24, 26, 157);
/* oklch */ color: oklch(34.3% 0.199 268.9);
Tailwind
colors: {
  custom: {
    50: '#725abb',
    500: '#181a9d',
    950: '#000000',
  },
}
SCSS
$custom: #181a9d;
$custom-light: #725abb;
$custom-dark: #000000;
JSON
{
  "hex": "#181a9d",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 157
  },
  "hsl": {
    "h": 239.098,
    "s": 73.481,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34307,
    "c": 0.1988,
    "h": 268.9
  },
  "luminance": 0.03367
}

Semantic roles & 50–950 ramp

primary
#181A9D
secondary
#C5C44B
accent
#ED38F0
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #181A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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