#181D5B#181D5B

#181D5B is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.2% C 0.109 H 273.1°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#181D5B
RGBrgb(24, 29, 91)
HSLhsl(236, 58%, 23%)
HSVhsv(236, 74%, 36%)
CMYKcmyk(73.6%, 68.1%, 0%, 64.3%)
CIE-LABlab(14.56, 20.92, -37.87)
CIE-LCHlch(14.56, 43.26, 298.92°)
OKLaboklab(27.19% 0.0059 -0.1093)
OKLCHoklch(27.19% 0.109 273.1)
XYZxyz(2.7037, 1.8280, 10.1059)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D5B #5B5618
analogous
#183F5B #181D5B #34185B
triadic
#181D5B #5B181D #1D5B18
tetradic
#181D5B #5B183F #5B5618 #185B34
square
#181D5B #5B183F #5B5618 #185B34
split-complementary
#181D5B #5B3418 #3F5B18
monochromatic
#060818 #0B0E2B #181D5B #252C8B #323CBC

Accessibility & contrast

On white

15.38
#181D5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#181D5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D5B
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D5B#FFFFFF#000000##FFFFFF
##181D5B1.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#002D39
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181d5b;
/* rgb */ color: rgb(24, 29, 91);
/* oklch */ color: oklch(27.2% 0.109 273.1);
Tailwind
colors: {
  custom: {
    50: '#5f598a',
    500: '#181d5b',
    950: '#000000',
  },
}
SCSS
$custom: #181d5b;
$custom-light: #5f598a;
$custom-dark: #000000;
JSON
{
  "hex": "#181d5b",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 91
  },
  "hsl": {
    "h": 235.522,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27185,
    "c": 0.10945,
    "h": 273.1
  },
  "luminance": 0.01828
}

Semantic roles & 50–950 ramp

primary
#181D5B
secondary
#928B3D
accent
#D646E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #181D5B

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

Preview Lab → · Contrast checker → · Palette generator →

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