#181D57#181D57

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

Color values

HEX#181D57
RGBrgb(24, 29, 87)
HSLhsl(235, 57%, 22%)
HSVhsv(235, 72%, 34%)
CMYKcmyk(72.4%, 66.7%, 0%, 65.9%)
CIE-LABlab(14.18, 19.33, -35.80)
CIE-LCHlch(14.18, 40.68, 298.36°)
OKLaboklab(26.79% 0.0061 -0.1032)
OKLCHoklch(26.79% 0.103 273.4)
XYZxyz(2.5358, 1.7608, 9.2212)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D57 #575218
analogous
#183D57 #181D57 #331857
triadic
#181D57 #57181D #1D5718
tetradic
#181D57 #57183D #575218 #185733
square
#181D57 #57183D #575218 #185733
split-complementary
#181D57 #573318 #3D5718
monochromatic
#070818 #0B0D27 #181D57 #252D87 #323DB7

Accessibility & contrast

On white

15.53
#181D57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181D57
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D57#FFFFFF#000000##FFFFFF
##181D571.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181d57;
/* rgb */ color: rgb(24, 29, 87);
/* oklch */ color: oklch(26.8% 0.103 273.4);
Tailwind
colors: {
  custom: {
    50: '#5e5987',
    500: '#181d57',
    950: '#000000',
  },
}
SCSS
$custom: #181d57;
$custom-light: #5e5987;
$custom-dark: #000000;
JSON
{
  "hex": "#181d57",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 87
  },
  "hsl": {
    "h": 235.238,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26789,
    "c": 0.10339,
    "h": 273.4
  },
  "luminance": 0.01761
}

Semantic roles & 50–950 ramp

primary
#181D57
secondary
#8E873D
accent
#D448E0
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181D57

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

Preview Lab → · Contrast checker → · Palette generator →

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