#181D4E#181D4E

#181D4E is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.9% C 0.089 H 274.0°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#181D4E
RGBrgb(24, 29, 78)
HSLhsl(234, 53%, 20%)
HSVhsv(234, 69%, 31%)
CMYKcmyk(69.2%, 62.8%, 0%, 69.4%)
CIE-LABlab(13.37, 15.71, -31.00)
CIE-LCHlch(13.37, 34.75, 296.87°)
OKLaboklab(25.94% 0.0062 -0.0891)
OKLCHoklch(25.94% 0.089 274)
XYZxyz(2.1907, 1.6228, 7.4040)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D4E #4E4918
analogous
#18384E #181D4E #2E184E
triadic
#181D4E #4E181D #1D4E18
tetradic
#181D4E #4E1838 #4E4918 #184E2E
square
#181D4E #4E1838 #4E4918 #184E2E
split-complementary
#181D4E #4E2E18 #384E18
monochromatic
#070917 #0A0C1F #181D4E #262E7D #3540AC

Accessibility & contrast

On white

15.85
#181D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#181D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D4E
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D4E#FFFFFF#000000##FFFFFF
##181D4E1.0015.851.3215.85
#FFFFFF15.851.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002550
Deuteranopia (green-blind)
#00204D
Tritanopia (blue-blind)
#002932
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181d4e;
/* rgb */ color: rgb(24, 29, 78);
/* oklch */ color: oklch(25.9% 0.089 274.0);
Tailwind
colors: {
  custom: {
    50: '#5c5880',
    500: '#181d4e',
    950: '#000000',
  },
}
SCSS
$custom: #181d4e;
$custom-light: #5c5880;
$custom-dark: #000000;
JSON
{
  "hex": "#181d4e",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 78
  },
  "hsl": {
    "h": 234.444,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.25935,
    "c": 0.08933,
    "h": 274
  },
  "luminance": 0.01623
}

Semantic roles & 50–950 ramp

primary
#181D4E
secondary
#857E3D
accent
#CF4BDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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