#181D4D#181D4D

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

Color values

HEX#181D4D
RGBrgb(24, 29, 77)
HSLhsl(234, 52%, 20%)
HSVhsv(234, 69%, 30%)
CMYKcmyk(68.8%, 62.3%, 0%, 69.8%)
CIE-LABlab(13.28, 15.30, -30.45)
CIE-LCHlch(13.28, 34.08, 296.68°)
OKLaboklab(25.84% 0.0062 -0.0875)
OKLCHoklch(25.84% 0.088 274)
XYZxyz(2.1552, 1.6086, 7.2167)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D4D #4D4818
analogous
#18374D #181D4D #2E184D
triadic
#181D4D #4D181D #1D4D18
tetradic
#181D4D #4D1837 #4D4818 #184D2E
square
#181D4D #4D1837 #4D4818 #184D2E
split-complementary
#181D4D #4D2E18 #374D18
monochromatic
#070917 #090B1E #181D4D #272F7C #3540AA

Accessibility & contrast

On white

15.89
#181D4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181D4D
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D4D#FFFFFF#000000##FFFFFF
##181D4D1.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00254F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#002831
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181d4d;
/* rgb */ color: rgb(24, 29, 77);
/* oklch */ color: oklch(25.8% 0.088 274.0);
Tailwind
colors: {
  custom: {
    50: '#5c587f',
    500: '#181d4d',
    950: '#000000',
  },
}
SCSS
$custom: #181d4d;
$custom-light: #5c587f;
$custom-dark: #000000;
JSON
{
  "hex": "#181d4d",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 77
  },
  "hsl": {
    "h": 234.34,
    "s": 52.475,
    "l": 19.804
  },
  "oklch": {
    "l": 0.25844,
    "c": 0.08772,
    "h": 274
  },
  "luminance": 0.01609
}

Semantic roles & 50–950 ramp

primary
#181D4D
secondary
#847D3D
accent
#CE4CDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181D4D

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

Preview Lab → · Contrast checker → · Palette generator →

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