#181F4B#181F4B

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

Color values

HEX#181F4B
RGBrgb(24, 31, 75)
HSLhsl(232, 52%, 19%)
HSVhsv(232, 68%, 29%)
CMYKcmyk(68%, 58.7%, 0%, 70.6%)
CIE-LABlab(13.72, 13.00, -28.37)
CIE-LCHlch(13.72, 31.20, 294.62°)
OKLaboklab(26.12% 0.0038 -0.0813)
OKLCHoklch(26.12% 0.081 272.7)
XYZxyz(2.1363, 1.6820, 6.8673)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F4B #4B4418
analogous
#18394B #181F4B #2B184B
triadic
#181F4B #4B181F #1F4B18
tetradic
#181F4B #4B1839 #4B4418 #184B2B
square
#181F4B #4B1839 #4B4418 #184B2B
split-complementary
#181F4B #4B2B18 #394B18
monochromatic
#070A17 #090C1D #181F4B #273279 #3645A8

Accessibility & contrast

On white

15.71
#181F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#181F4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F4B
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F4B#FFFFFF#000000##FFFFFF
##181F4B1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05254D
Deuteranopia (green-blind)
#00214A
Tritanopia (blue-blind)
#002931
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181f4b;
/* rgb */ color: rgb(24, 31, 75);
/* oklch */ color: oklch(26.1% 0.081 272.7);
Tailwind
colors: {
  custom: {
    50: '#5b5a7e',
    500: '#181f4b',
    950: '#000000',
  },
}
SCSS
$custom: #181f4b;
$custom-light: #5b5a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#181f4b",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 75
  },
  "hsl": {
    "h": 231.765,
    "s": 51.515,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2612,
    "c": 0.08143,
    "h": 272.7
  },
  "luminance": 0.01682
}

Semantic roles & 50–950 ramp

primary
#181F4B
secondary
#82783D
accent
#C74DDB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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