#181E56#181E56

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

Color values

HEX#181E56
RGBrgb(24, 30, 86)
HSLhsl(234, 56%, 22%)
HSVhsv(234, 72%, 34%)
CMYKcmyk(72.1%, 65.1%, 0%, 66.3%)
CIE-LABlab(14.37, 18.19, -34.81)
CIE-LCHlch(14.37, 39.28, 297.59°)
OKLaboklab(26.9% 0.0052 -0.1003)
OKLCHoklch(26.9% 0.1 273)
XYZxyz(2.5201, 1.7944, 9.0158)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E56 #565018
analogous
#183D56 #181E56 #311856
triadic
#181E56 #56181E #1E5618
tetradic
#181E56 #56183D #565018 #185631
square
#181E56 #56183D #565018 #185631
split-complementary
#181E56 #563118 #3D5618
monochromatic
#070818 #0B0D26 #181E56 #252F86 #333FB6

Accessibility & contrast

On white

15.45
#181E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181E56
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E56#FFFFFF#000000##FFFFFF
##181E561.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181e56;
/* rgb */ color: rgb(24, 30, 86);
/* oklch */ color: oklch(26.9% 0.100 273.0);
Tailwind
colors: {
  custom: {
    50: '#5e5986',
    500: '#181e56',
    950: '#000000',
  },
}
SCSS
$custom: #181e56;
$custom-light: #5e5986;
$custom-dark: #000000;
JSON
{
  "hex": "#181e56",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 86
  },
  "hsl": {
    "h": 234.194,
    "s": 56.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26901,
    "c": 0.10044,
    "h": 273
  },
  "luminance": 0.01795
}

Semantic roles & 50–950 ramp

primary
#181E56
secondary
#8D853D
accent
#D148E0
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181E56

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

Preview Lab → · Contrast checker → · Palette generator →

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