#181A5A#181A5A

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

Color values

HEX#181A5A
RGBrgb(24, 26, 90)
HSLhsl(238, 58%, 22%)
HSVhsv(238, 73%, 35%)
CMYKcmyk(73.3%, 71.1%, 0%, 64.7%)
CIE-LABlab(13.66, 22.65, -38.67)
CIE-LCHlch(13.66, 44.82, 300.36°)
OKLaboklab(26.5% 0.0084 -0.1117)
OKLCHoklch(26.5% 0.112 274.3)
XYZxyz(2.5909, 1.6709, 9.8569)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A5A #5A5818
analogous
#183B5A #181A5A #37185A
triadic
#181A5A #5A181A #1A5A18
tetradic
#181A5A #5A183B #5A5818 #185A37
square
#181A5A #5A183B #5A5818 #185A37
split-complementary
#181A5A #5A3718 #3B5A18
monochromatic
#060718 #0B0C2A #181A5A #25288A #3236BB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##181A5A#FFFFFF#000000##FFFFFF
##181A5A1.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)
#00265C
Deuteranopia (green-blind)
#002059
Tritanopia (blue-blind)
#002B37
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181a5a;
/* rgb */ color: rgb(24, 26, 90);
/* oklch */ color: oklch(26.5% 0.112 274.3);
Tailwind
colors: {
  custom: {
    50: '#5f5689',
    500: '#181a5a',
    950: '#000000',
  },
}
SCSS
$custom: #181a5a;
$custom-light: #5f5689;
$custom-dark: #000000;
JSON
{
  "hex": "#181a5a",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 90
  },
  "hsl": {
    "h": 238.182,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26497,
    "c": 0.11198,
    "h": 274.3
  },
  "luminance": 0.01671
}

Semantic roles & 50–950 ramp

primary
#181A5A
secondary
#918E3D
accent
#DC47E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #181A5A

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

Preview Lab → · Contrast checker → · Palette generator →

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