#181C56#181C56

#181C56 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.5% C 0.103 H 273.9°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#181C56
RGBrgb(24, 28, 86)
HSLhsl(236, 56%, 22%)
HSVhsv(236, 72%, 34%)
CMYKcmyk(72.1%, 67.4%, 0%, 66.3%)
CIE-LABlab(13.81, 19.65, -35.73)
CIE-LCHlch(13.81, 40.78, 298.81°)
OKLaboklab(26.48% 0.0071 -0.103)
OKLCHoklch(26.48% 0.103 273.9)
XYZxyz(2.4711, 1.6964, 8.9995)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C56 #565218
analogous
#183B56 #181C56 #331856
triadic
#181C56 #56181C #1C5618
tetradic
#181C56 #56183B #565218 #185633
square
#181C56 #56183B #565218 #185633
split-complementary
#181C56 #563318 #3B5618
monochromatic
#070818 #0B0C26 #181C56 #252C86 #333BB6

Accessibility & contrast

On white

15.68
#181C56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#181C56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C56
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C56#FFFFFF#000000##FFFFFF
##181C561.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#002055
Tritanopia (blue-blind)
#002B36
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181c56;
/* rgb */ color: rgb(24, 28, 86);
/* oklch */ color: oklch(26.5% 0.103 273.9);
Tailwind
colors: {
  custom: {
    50: '#5e5886',
    500: '#181c56',
    950: '#000000',
  },
}
SCSS
$custom: #181c56;
$custom-light: #5e5886;
$custom-dark: #000000;
JSON
{
  "hex": "#181c56",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 86
  },
  "hsl": {
    "h": 236.129,
    "s": 56.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26485,
    "c": 0.10326,
    "h": 273.9
  },
  "luminance": 0.01697
}

Semantic roles & 50–950 ramp

primary
#181C56
secondary
#8D883D
accent
#D648E0
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181C56

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

Preview Lab → · Contrast checker → · Palette generator →

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