#181E55#181E55

#181E55 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.8% C 0.099 H 273.0°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#181E55
RGBrgb(24, 30, 85)
HSLhsl(234, 56%, 21%)
HSVhsv(234, 72%, 33%)
CMYKcmyk(71.8%, 64.7%, 0%, 66.7%)
CIE-LABlab(14.28, 17.79, -34.28)
CIE-LCHlch(14.28, 38.62, 297.43°)
OKLaboklab(26.81% 0.0052 -0.0988)
OKLCHoklch(26.81% 0.099 273)
XYZxyz(2.4801, 1.7784, 8.8051)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E55 #554F18
analogous
#183D55 #181E55 #311855
triadic
#181E55 #55181E #1E5518
tetradic
#181E55 #55183D #554F18 #185531
square
#181E55 #55183D #554F18 #185531
split-complementary
#181E55 #553118 #3D5518
monochromatic
#070818 #0B0D25 #181E55 #252F85 #3340B4

Accessibility & contrast

On white

15.49
#181E55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#181E55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E55
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E55#FFFFFF#000000##FFFFFF
##181E551.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002757
Deuteranopia (green-blind)
#002154
Tritanopia (blue-blind)
#002C36
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181e55;
/* rgb */ color: rgb(24, 30, 85);
/* oklch */ color: oklch(26.8% 0.099 273.0);
Tailwind
colors: {
  custom: {
    50: '#5e5985',
    500: '#181e55',
    950: '#000000',
  },
}
SCSS
$custom: #181e55;
$custom-light: #5e5985;
$custom-dark: #000000;
JSON
{
  "hex": "#181e55",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 85
  },
  "hsl": {
    "h": 234.098,
    "s": 55.963,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26806,
    "c": 0.0989,
    "h": 273
  },
  "luminance": 0.01779
}

Semantic roles & 50–950 ramp

primary
#181E55
secondary
#8C843D
accent
#D049DF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181E55

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

Preview Lab → · Contrast checker → · Palette generator →

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