#181D5D#181D5D

#181D5D is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.112 H 272.9°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#181D5D
RGBrgb(24, 29, 93)
HSLhsl(236, 59%, 23%)
HSVhsv(236, 74%, 36%)
CMYKcmyk(74.2%, 68.8%, 0%, 63.5%)
CIE-LABlab(14.75, 21.71, -38.89)
CIE-LCHlch(14.75, 44.54, 299.18°)
OKLaboklab(27.39% 0.0057 -0.1123)
OKLCHoklch(27.39% 0.112 272.9)
XYZxyz(2.7912, 1.8630, 10.5663)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D5D #5D5818
analogous
#183F5D #181D5D #35185D
triadic
#181D5D #5D181D #1D5D18
tetradic
#181D5D #5D183F #5D5818 #185D35
square
#181D5D #5D183F #5D5818 #185D35
split-complementary
#181D5D #5D3518 #3F5D18
monochromatic
#060818 #0B0E2C #181D5D #252C8E #313BBE

Accessibility & contrast

On white

15.30
#181D5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181D5D
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D5D#FFFFFF#000000##FFFFFF
##181D5D1.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#002E3A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181d5d;
/* rgb */ color: rgb(24, 29, 93);
/* oklch */ color: oklch(27.4% 0.112 272.9);
Tailwind
colors: {
  custom: {
    50: '#60598c',
    500: '#181d5d',
    950: '#000000',
  },
}
SCSS
$custom: #181d5d;
$custom-light: #60598c;
$custom-dark: #000000;
JSON
{
  "hex": "#181d5d",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 93
  },
  "hsl": {
    "h": 235.652,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27387,
    "c": 0.11243,
    "h": 272.9
  },
  "luminance": 0.01863
}

Semantic roles & 50–950 ramp

primary
#181D5D
secondary
#938D3D
accent
#D746E2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #181D5D

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

Preview Lab → · Contrast checker → · Palette generator →

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