#181C55#181C55

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

Color values

HEX#181C55
RGBrgb(24, 28, 85)
HSLhsl(236, 56%, 21%)
HSVhsv(236, 72%, 33%)
CMYKcmyk(71.8%, 67.1%, 0%, 66.7%)
CIE-LABlab(13.71, 19.25, -35.21)
CIE-LCHlch(13.71, 40.13, 298.67°)
OKLaboklab(26.39% 0.0071 -0.1015)
OKLCHoklch(26.39% 0.102 274)
XYZxyz(2.4311, 1.6804, 8.7888)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C55 #555118
analogous
#183B55 #181C55 #331855
triadic
#181C55 #55181C #1C5518
tetradic
#181C55 #55183B #555118 #185533
square
#181C55 #55183B #555118 #185533
split-complementary
#181C55 #553318 #3B5518
monochromatic
#070818 #0B0C25 #181C55 #252C85 #333BB4

Accessibility & contrast

On white

15.72
#181C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181C55
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C55#FFFFFF#000000##FFFFFF
##181C551.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002657
Deuteranopia (green-blind)
#002054
Tritanopia (blue-blind)
#002A35
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181c55;
/* rgb */ color: rgb(24, 28, 85);
/* oklch */ color: oklch(26.4% 0.102 274.0);
Tailwind
colors: {
  custom: {
    50: '#5e5885',
    500: '#181c55',
    950: '#000000',
  },
}
SCSS
$custom: #181c55;
$custom-light: #5e5885;
$custom-dark: #000000;
JSON
{
  "hex": "#181c55",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 85
  },
  "hsl": {
    "h": 236.066,
    "s": 55.963,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26387,
    "c": 0.10174,
    "h": 274
  },
  "luminance": 0.01681
}

Semantic roles & 50–950 ramp

primary
#181C55
secondary
#8C873D
accent
#D549DF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181C55

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

Preview Lab → · Contrast checker → · Palette generator →

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