#181E5A#181E5A

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

Color values

HEX#181E5A
RGBrgb(24, 30, 90)
HSLhsl(235, 58%, 22%)
HSVhsv(235, 73%, 35%)
CMYKcmyk(73.3%, 66.7%, 0%, 64.7%)
CIE-LABlab(14.74, 19.80, -36.90)
CIE-LCHlch(14.74, 41.88, 298.22°)
OKLaboklab(27.29% 0.0051 -0.1064)
OKLCHoklch(27.29% 0.107 272.7)
XYZxyz(2.6858, 1.8607, 9.8885)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E5A #5A5418
analogous
#183F5A #181E5A #33185A
triadic
#181E5A #5A181E #1E5A18
tetradic
#181E5A #5A183F #5A5418 #185A33
square
#181E5A #5A183F #5A5418 #185A33
split-complementary
#181E5A #5A3318 #3F5A18
monochromatic
#060818 #0B0E2A #181E5A #252E8A #323EBB

Accessibility & contrast

On white

15.30
#181E5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#181E5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E5A
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E5A#FFFFFF#000000##FFFFFF
##181E5A1.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#002D38
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181e5a;
/* rgb */ color: rgb(24, 30, 90);
/* oklch */ color: oklch(27.3% 0.107 272.7);
Tailwind
colors: {
  custom: {
    50: '#5f5989',
    500: '#181e5a',
    950: '#000000',
  },
}
SCSS
$custom: #181e5a;
$custom-light: #5f5989;
$custom-dark: #000000;
JSON
{
  "hex": "#181e5a",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 90
  },
  "hsl": {
    "h": 234.545,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27289,
    "c": 0.10656,
    "h": 272.7
  },
  "luminance": 0.01861
}

Semantic roles & 50–950 ramp

primary
#181E5A
secondary
#91893D
accent
#D347E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #181E5A

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

Preview Lab → · Contrast checker → · Palette generator →

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