#181F4A#181F4A

#181F4A is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.0% C 0.080 H 272.7°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#181F4A
RGBrgb(24, 31, 74)
HSLhsl(232, 51%, 19%)
HSVhsv(232, 68%, 29%)
CMYKcmyk(67.6%, 58.1%, 0%, 71%)
CIE-LABlab(13.64, 12.59, -27.81)
CIE-LCHlch(13.64, 30.53, 294.36°)
OKLaboklab(26.03% 0.0037 -0.0797)
OKLCHoklch(26.03% 0.08 272.7)
XYZxyz(2.1023, 1.6684, 6.6885)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F4A #4A4318
analogous
#18384A #181F4A #2A184A
triadic
#181F4A #4A181F #1F4A18
tetradic
#181F4A #4A1838 #4A4318 #184A2A
square
#181F4A #4A1838 #4A4318 #184A2A
split-complementary
#181F4A #4A2A18 #384A18
monochromatic
#070A17 #090C1C #181F4A #273278 #3646A6

Accessibility & contrast

On white

15.74
#181F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#181F4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F4A
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F4A#FFFFFF#000000##FFFFFF
##181F4A1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06254C
Deuteranopia (green-blind)
#002149
Tritanopia (blue-blind)
#002931
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181f4a;
/* rgb */ color: rgb(24, 31, 74);
/* oklch */ color: oklch(26.0% 0.080 272.7);
Tailwind
colors: {
  custom: {
    50: '#5b5a7d',
    500: '#181f4a',
    950: '#000000',
  },
}
SCSS
$custom: #181f4a;
$custom-light: #5b5a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#181f4a",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 74
  },
  "hsl": {
    "h": 231.6,
    "s": 51.02,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26034,
    "c": 0.07979,
    "h": 272.7
  },
  "luminance": 0.01669
}

Semantic roles & 50–950 ramp

primary
#181F4A
secondary
#81773D
accent
#C74DDA
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #181F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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