#181D5C#181D5C

#181D5C is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.3% C 0.111 H 273.0°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#181D5C
RGBrgb(24, 29, 92)
HSLhsl(236, 59%, 23%)
HSVhsv(236, 74%, 36%)
CMYKcmyk(73.9%, 68.5%, 0%, 63.9%)
CIE-LABlab(14.65, 21.32, -38.38)
CIE-LCHlch(14.65, 43.90, 299.05°)
OKLaboklab(27.29% 0.0058 -0.1108)
OKLCHoklch(27.29% 0.111 273)
XYZxyz(2.7472, 1.8454, 10.3346)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D5C #5C5718
analogous
#183F5C #181D5C #35185C
triadic
#181D5C #5C181D #1D5C18
tetradic
#181D5C #5C183F #5C5718 #185C35
square
#181D5C #5C183F #5C5718 #185C35
split-complementary
#181D5C #5C3518 #3F5C18
monochromatic
#060818 #0B0E2B #181D5C #252C8D #313CBD

Accessibility & contrast

On white

15.34
#181D5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181D5C
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D5C#FFFFFF#000000##FFFFFF
##181D5C1.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181d5c;
/* rgb */ color: rgb(24, 29, 92);
/* oklch */ color: oklch(27.3% 0.111 273.0);
Tailwind
colors: {
  custom: {
    50: '#60598b',
    500: '#181d5c',
    950: '#000000',
  },
}
SCSS
$custom: #181d5c;
$custom-light: #60598b;
$custom-dark: #000000;
JSON
{
  "hex": "#181d5c",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 92
  },
  "hsl": {
    "h": 235.588,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27286,
    "c": 0.11094,
    "h": 273
  },
  "luminance": 0.01846
}

Semantic roles & 50–950 ramp

primary
#181D5C
secondary
#938C3D
accent
#D646E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #181D5C

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

Preview Lab → · Contrast checker → · Palette generator →

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