#181D54#181D54

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

Color values

HEX#181D54
RGBrgb(24, 29, 84)
HSLhsl(235, 56%, 21%)
HSVhsv(235, 71%, 33%)
CMYKcmyk(71.4%, 65.5%, 0%, 67.1%)
CIE-LABlab(13.90, 18.12, -34.22)
CIE-LCHlch(13.90, 38.72, 297.91°)
OKLaboklab(26.5% 0.0062 -0.0986)
OKLCHoklch(26.5% 0.099 273.6)
XYZxyz(2.4158, 1.7128, 8.5891)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D54 #544F18
analogous
#183B54 #181D54 #311854
triadic
#181D54 #54181D #1D5418
tetradic
#181D54 #54183B #544F18 #185431
square
#181D54 #54183B #544F18 #185431
split-complementary
#181D54 #543118 #3B5418
monochromatic
#070818 #0A0D24 #181D54 #262D84 #333EB3

Accessibility & contrast

On white

15.64
#181D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181D54
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D54#FFFFFF#000000##FFFFFF
##181D541.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181d54;
/* rgb */ color: rgb(24, 29, 84);
/* oklch */ color: oklch(26.5% 0.099 273.6);
Tailwind
colors: {
  custom: {
    50: '#5e5885',
    500: '#181d54',
    950: '#000000',
  },
}
SCSS
$custom: #181d54;
$custom-light: #5e5885;
$custom-dark: #000000;
JSON
{
  "hex": "#181d54",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 84
  },
  "hsl": {
    "h": 235,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26498,
    "c": 0.09877,
    "h": 273.6
  },
  "luminance": 0.01713
}

Semantic roles & 50–950 ramp

primary
#181D54
secondary
#8B843D
accent
#D249DF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181D54

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

Preview Lab → · Contrast checker → · Palette generator →

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