#181D4C#181D4C

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

Color values

HEX#181D4C
RGBrgb(24, 29, 76)
HSLhsl(234, 52%, 20%)
HSVhsv(234, 68%, 30%)
CMYKcmyk(68.4%, 61.8%, 0%, 70.2%)
CIE-LABlab(13.20, 14.90, -29.90)
CIE-LCHlch(13.20, 33.41, 296.49°)
OKLaboklab(25.75% 0.0061 -0.0859)
OKLCHoklch(25.75% 0.086 274.1)
XYZxyz(2.1201, 1.5945, 7.0321)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D4C #4C4718
analogous
#18374C #181D4C #2D184C
triadic
#181D4C #4C181D #1D4C18
tetradic
#181D4C #4C1837 #4C4718 #184C2D
square
#181D4C #4C1837 #4C4718 #184C2D
split-complementary
#181D4C #4C2D18 #374C18
monochromatic
#070917 #090B1D #181D4C #272F7B #3540A9

Accessibility & contrast

On white

15.92
#181D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181D4C
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D4C#FFFFFF#000000##FFFFFF
##181D4C1.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#002831
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181d4c;
/* rgb */ color: rgb(24, 29, 76);
/* oklch */ color: oklch(25.8% 0.086 274.1);
Tailwind
colors: {
  custom: {
    50: '#5c587e',
    500: '#181d4c',
    950: '#000000',
  },
}
SCSS
$custom: #181d4c;
$custom-light: #5c587e;
$custom-dark: #000000;
JSON
{
  "hex": "#181d4c",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 76
  },
  "hsl": {
    "h": 234.231,
    "s": 52,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25753,
    "c": 0.08611,
    "h": 274.1
  },
  "luminance": 0.01595
}

Semantic roles & 50–950 ramp

primary
#181D4C
secondary
#837C3D
accent
#CE4CDB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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