#181D4B#181D4B

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

Color values

HEX#181D4B
RGBrgb(24, 29, 75)
HSLhsl(234, 52%, 19%)
HSVhsv(234, 68%, 29%)
CMYKcmyk(68%, 61.3%, 0%, 70.6%)
CIE-LABlab(13.11, 14.49, -29.35)
CIE-LCHlch(13.11, 32.74, 296.28°)
OKLaboklab(25.66% 0.0061 -0.0843)
OKLCHoklch(25.66% 0.084 274.1)
XYZxyz(2.0856, 1.5808, 6.8505)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D4B #4B4618
analogous
#18374B #181D4B #2D184B
triadic
#181D4B #4B181D #1D4B18
tetradic
#181D4B #4B1837 #4B4618 #184B2D
square
#181D4B #4B1837 #4B4618 #184B2D
split-complementary
#181D4B #4B2D18 #374B18
monochromatic
#070917 #090B1D #181D4B #272F79 #3641A8

Accessibility & contrast

On white

15.96
#181D4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181D4B
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D4B#FFFFFF#000000##FFFFFF
##181D4B1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#002830
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181d4b;
/* rgb */ color: rgb(24, 29, 75);
/* oklch */ color: oklch(25.7% 0.084 274.1);
Tailwind
colors: {
  custom: {
    50: '#5b587e',
    500: '#181d4b',
    950: '#000000',
  },
}
SCSS
$custom: #181d4b;
$custom-light: #5b587e;
$custom-dark: #000000;
JSON
{
  "hex": "#181d4b",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 75
  },
  "hsl": {
    "h": 234.118,
    "s": 51.515,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25663,
    "c": 0.08449,
    "h": 274.1
  },
  "luminance": 0.01581
}

Semantic roles & 50–950 ramp

primary
#181D4B
secondary
#827B3D
accent
#CD4DDB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181D4B

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

Preview Lab → · Contrast checker → · Palette generator →

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