#181D56#181D56

#181D56 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.7% C 0.102 H 273.4°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#181D56
RGBrgb(24, 29, 86)
HSLhsl(235, 56%, 22%)
HSVhsv(235, 72%, 34%)
CMYKcmyk(72.1%, 66.3%, 0%, 66.3%)
CIE-LABlab(14.09, 18.92, -35.27)
CIE-LCHlch(14.09, 40.03, 298.21°)
OKLaboklab(26.69% 0.0061 -0.1017)
OKLCHoklch(26.69% 0.102 273.4)
XYZxyz(2.4952, 1.7446, 9.0075)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D56 #565118
analogous
#183C56 #181D56 #321856
triadic
#181D56 #56181D #1D5618
tetradic
#181D56 #56183C #565118 #185632
square
#181D56 #56183C #565118 #185632
split-complementary
#181D56 #563218 #3C5618
monochromatic
#070818 #0B0D26 #181D56 #252D86 #333DB6

Accessibility & contrast

On white

15.57
#181D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#181D56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D56
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D56#FFFFFF#000000##FFFFFF
##181D561.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181d56;
/* rgb */ color: rgb(24, 29, 86);
/* oklch */ color: oklch(26.7% 0.102 273.4);
Tailwind
colors: {
  custom: {
    50: '#5e5886',
    500: '#181d56',
    950: '#000000',
  },
}
SCSS
$custom: #181d56;
$custom-light: #5e5886;
$custom-dark: #000000;
JSON
{
  "hex": "#181d56",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 86
  },
  "hsl": {
    "h": 235.161,
    "s": 56.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26692,
    "c": 0.10186,
    "h": 273.4
  },
  "luminance": 0.01745
}

Semantic roles & 50–950 ramp

primary
#181D56
secondary
#8D863D
accent
#D348E0
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181D56

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

Preview Lab → · Contrast checker → · Palette generator →

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