#181E54#181E54

#181E54 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.7% C 0.097 H 273.1°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#181E54
RGBrgb(24, 30, 84)
HSLhsl(234, 56%, 21%)
HSVhsv(234, 71%, 33%)
CMYKcmyk(71.4%, 64.3%, 0%, 67.1%)
CIE-LABlab(14.19, 17.39, -33.75)
CIE-LCHlch(14.19, 37.97, 297.26°)
OKLaboklab(26.71% 0.0052 -0.0972)
OKLCHoklch(26.71% 0.097 273.1)
XYZxyz(2.4407, 1.7626, 8.5974)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E54 #544E18
analogous
#183C54 #181E54 #301854
triadic
#181E54 #54181E #1E5418
tetradic
#181E54 #54183C #544E18 #185430
square
#181E54 #54183C #544E18 #185430
split-complementary
#181E54 #543018 #3C5418
monochromatic
#070818 #0A0D24 #181E54 #262F84 #3340B3

Accessibility & contrast

On white

15.53
#181E54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#181E54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E54
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E54#FFFFFF#000000##FFFFFF
##181E541.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002756
Deuteranopia (green-blind)
#002153
Tritanopia (blue-blind)
#002B35
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181e54;
/* rgb */ color: rgb(24, 30, 84);
/* oklch */ color: oklch(26.7% 0.097 273.1);
Tailwind
colors: {
  custom: {
    50: '#5d5985',
    500: '#181e54',
    950: '#000000',
  },
}
SCSS
$custom: #181e54;
$custom-light: #5d5985;
$custom-dark: #000000;
JSON
{
  "hex": "#181e54",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 84
  },
  "hsl": {
    "h": 234,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26711,
    "c": 0.09734,
    "h": 273.1
  },
  "luminance": 0.01763
}

Semantic roles & 50–950 ramp

primary
#181E54
secondary
#8B833D
accent
#D049DF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181E54

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

Preview Lab → · Contrast checker → · Palette generator →

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