#181E9D#181E9D

#181E9D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.196 H 268.7°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#181E9D
RGBrgb(24, 30, 157)
HSLhsl(237, 73%, 35%)
HSVhsv(237, 85%, 62%)
CMYKcmyk(84.7%, 80.9%, 0%, 38.4%)
CIE-LABlab(22.15, 44.41, -67.50)
CIE-LCHlch(22.15, 80.79, 303.34°)
OKLaboklab(34.79% -0.0044 -0.1955)
OKLCHoklch(34.79% 0.196 268.7)
XYZxyz(6.9247, 3.5562, 32.2132)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E9D #9D9718
analogous
#18619D #181E9D #54189D
triadic
#181E9D #9D181E #1E9D18
tetradic
#181E9D #9D1861 #9D9718 #189D54
square
#181E9D #9D1861 #9D9718 #189D54
split-complementary
#181E9D #9D5418 #619D18
monochromatic
#080A33 #101468 #181E9D #2028D2 #4C53E4

Accessibility & contrast

On white

12.27
#181E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#181E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E9D
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E9D#FFFFFF#000000##FFFFFF
##181E9D1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA1
Deuteranopia (green-blind)
#002E9B
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #181e9d;
/* rgb */ color: rgb(24, 30, 157);
/* oklch */ color: oklch(34.8% 0.196 268.7);
Tailwind
colors: {
  custom: {
    50: '#725dbb',
    500: '#181e9d',
    950: '#000000',
  },
}
SCSS
$custom: #181e9d;
$custom-light: #725dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#181e9d",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 237.293,
    "s": 73.481,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34789,
    "c": 0.19558,
    "h": 268.7
  },
  "luminance": 0.03557
}

Semantic roles & 50–950 ramp

primary
#181E9D
secondary
#C5C04B
accent
#E838F0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #181E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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