#181F5A#181F5A

#181F5A is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.5% C 0.105 H 272.3°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#181F5A
RGBrgb(24, 31, 90)
HSLhsl(234, 58%, 22%)
HSVhsv(234, 73%, 35%)
CMYKcmyk(73.3%, 65.6%, 0%, 64.7%)
CIE-LABlab(15.02, 19.08, -36.44)
CIE-LCHlch(15.02, 41.13, 297.63°)
OKLaboklab(27.5% 0.0042 -0.1051)
OKLCHoklch(27.5% 0.105 272.3)
XYZxyz(2.7115, 1.9121, 9.8971)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F5A #5A5318
analogous
#18405A #181F5A #32185A
triadic
#181F5A #5A181F #1F5A18
tetradic
#181F5A #5A1840 #5A5318 #185A32
square
#181F5A #5A1840 #5A5318 #185A32
split-complementary
#181F5A #5A3218 #405A18
monochromatic
#060818 #0B0E2A #181F5A #25308A #3240BB

Accessibility & contrast

On white

15.19
#181F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#181F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F5A
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F5A#FFFFFF#000000##FFFFFF
##181F5A1.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#002E39
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #181f5a;
/* rgb */ color: rgb(24, 31, 90);
/* oklch */ color: oklch(27.5% 0.105 272.3);
Tailwind
colors: {
  custom: {
    50: '#5f5a89',
    500: '#181f5a',
    950: '#000000',
  },
}
SCSS
$custom: #181f5a;
$custom-light: #5f5a89;
$custom-dark: #000000;
JSON
{
  "hex": "#181f5a",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 90
  },
  "hsl": {
    "h": 233.636,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27496,
    "c": 0.10517,
    "h": 272.3
  },
  "luminance": 0.01912
}

Semantic roles & 50–950 ramp

primary
#181F5A
secondary
#91883D
accent
#D147E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #181F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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