#181C5A#181C5A

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

Color values

HEX#181C5A
RGBrgb(24, 28, 90)
HSLhsl(236, 58%, 22%)
HSVhsv(236, 73%, 35%)
CMYKcmyk(73.3%, 68.9%, 0%, 64.7%)
CIE-LABlab(14.19, 21.24, -37.80)
CIE-LCHlch(14.19, 43.36, 299.33°)
OKLaboklab(26.89% 0.0068 -0.1091)
OKLCHoklch(26.89% 0.109 273.6)
XYZxyz(2.6368, 1.7626, 9.8721)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C5A #5A5618
analogous
#183D5A #181C5A #35185A
triadic
#181C5A #5A181C #1C5A18
tetradic
#181C5A #5A183D #5A5618 #185A35
square
#181C5A #5A183D #5A5618 #185A35
split-complementary
#181C5A #5A3518 #3D5A18
monochromatic
#060818 #0B0D2A #181C5A #252B8A #323ABB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##181C5A#FFFFFF#000000##FFFFFF
##181C5A1.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)
#00275C
Deuteranopia (green-blind)
#002159
Tritanopia (blue-blind)
#002C38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181c5a;
/* rgb */ color: rgb(24, 28, 90);
/* oklch */ color: oklch(26.9% 0.109 273.6);
Tailwind
colors: {
  custom: {
    50: '#5f5889',
    500: '#181c5a',
    950: '#000000',
  },
}
SCSS
$custom: #181c5a;
$custom-light: #5f5889;
$custom-dark: #000000;
JSON
{
  "hex": "#181c5a",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 90
  },
  "hsl": {
    "h": 236.364,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26885,
    "c": 0.1093,
    "h": 273.6
  },
  "luminance": 0.01763
}

Semantic roles & 50–950 ramp

primary
#181C5A
secondary
#918C3D
accent
#D847E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #181C5A

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

Preview Lab → · Contrast checker → · Palette generator →

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