#181E5B#181E5B

#181E5B is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.108 H 272.7°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#181E5B
RGBrgb(24, 30, 91)
HSLhsl(235, 58%, 23%)
HSVhsv(235, 74%, 36%)
CMYKcmyk(73.6%, 67%, 0%, 64.3%)
CIE-LABlab(14.83, 20.20, -37.42)
CIE-LCHlch(14.83, 42.52, 298.36°)
OKLaboklab(27.39% 0.005 -0.108)
OKLCHoklch(27.39% 0.108 272.7)
XYZxyz(2.7287, 1.8778, 10.1142)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E5B #5B5518
analogous
#183F5B #181E5B #34185B
triadic
#181E5B #5B181E #1E5B18
tetradic
#181E5B #5B183F #5B5518 #185B34
square
#181E5B #5B183F #5B5518 #185B34
split-complementary
#181E5B #5B3418 #3F5B18
monochromatic
#060818 #0B0E2B #181E5B #252E8B #323EBC

Accessibility & contrast

On white

15.27
#181E5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181E5B
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E5B#FFFFFF#000000##FFFFFF
##181E5B1.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#002E39
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181e5b;
/* rgb */ color: rgb(24, 30, 91);
/* oklch */ color: oklch(27.4% 0.108 272.7);
Tailwind
colors: {
  custom: {
    50: '#5f598a',
    500: '#181e5b',
    950: '#000000',
  },
}
SCSS
$custom: #181e5b;
$custom-light: #5f598a;
$custom-dark: #000000;
JSON
{
  "hex": "#181e5b",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 91
  },
  "hsl": {
    "h": 234.627,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27388,
    "c": 0.10808,
    "h": 272.7
  },
  "luminance": 0.01878
}

Semantic roles & 50–950 ramp

primary
#181E5B
secondary
#928A3D
accent
#D446E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #181E5B

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

Preview Lab → · Contrast checker → · Palette generator →

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