#181D58#181D58

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

Color values

HEX#181D58
RGBrgb(24, 29, 88)
HSLhsl(235, 57%, 22%)
HSVhsv(235, 73%, 35%)
CMYKcmyk(72.7%, 67%, 0%, 65.5%)
CIE-LABlab(14.27, 19.72, -36.32)
CIE-LCHlch(14.27, 41.33, 298.50°)
OKLaboklab(26.89% 0.006 -0.1047)
OKLCHoklch(26.89% 0.105 273.3)
XYZxyz(2.5769, 1.7773, 9.4379)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D58 #585318
analogous
#183D58 #181D58 #331858
triadic
#181D58 #58181D #1D5818
tetradic
#181D58 #58183D #585318 #185833
square
#181D58 #58183D #585318 #185833
split-complementary
#181D58 #583318 #3D5818
monochromatic
#070818 #0B0D28 #181D58 #252D88 #323DB8

Accessibility & contrast

On white

15.49
#181D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181D58
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D58#FFFFFF#000000##FFFFFF
##181D581.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#002157
Tritanopia (blue-blind)
#002C37
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181d58;
/* rgb */ color: rgb(24, 29, 88);
/* oklch */ color: oklch(26.9% 0.105 273.3);
Tailwind
colors: {
  custom: {
    50: '#5f5988',
    500: '#181d58',
    950: '#000000',
  },
}
SCSS
$custom: #181d58;
$custom-light: #5f5988;
$custom-dark: #000000;
JSON
{
  "hex": "#181d58",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 88
  },
  "hsl": {
    "h": 235.313,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26887,
    "c": 0.10491,
    "h": 273.3
  },
  "luminance": 0.01778
}

Semantic roles & 50–950 ramp

primary
#181D58
secondary
#8F883D
accent
#D447E0
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #181D58

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

Preview Lab → · Contrast checker → · Palette generator →

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