#181D4F#181D4F

#181D4F is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.0% C 0.091 H 273.9°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#181D4F
RGBrgb(24, 29, 79)
HSLhsl(235, 53%, 20%)
HSVhsv(235, 70%, 31%)
CMYKcmyk(69.6%, 63.3%, 0%, 69%)
CIE-LABlab(13.46, 16.11, -31.54)
CIE-LCHlch(13.46, 35.42, 297.06°)
OKLaboklab(26.03% 0.0062 -0.0907)
OKLCHoklch(26.03% 0.091 273.9)
XYZxyz(2.2269, 1.6372, 7.5943)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D4F #4F4A18
analogous
#18394F #181D4F #2E184F
triadic
#181D4F #4F181D #1D4F18
tetradic
#181D4F #4F1839 #4F4A18 #184F2E
square
#181D4F #4F1839 #4F4A18 #184F2E
split-complementary
#181D4F #4F2E18 #394F18
monochromatic
#070917 #0A0C20 #181D4F #262E7E #353FAD

Accessibility & contrast

On white

15.82
#181D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#181D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D4F
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D4F#FFFFFF#000000##FFFFFF
##181D4F1.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181d4f;
/* rgb */ color: rgb(24, 29, 79);
/* oklch */ color: oklch(26.0% 0.091 273.9);
Tailwind
colors: {
  custom: {
    50: '#5c5881',
    500: '#181d4f',
    950: '#000000',
  },
}
SCSS
$custom: #181d4f;
$custom-light: #5c5881;
$custom-dark: #000000;
JSON
{
  "hex": "#181d4f",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 79
  },
  "hsl": {
    "h": 234.545,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26027,
    "c": 0.09092,
    "h": 273.9
  },
  "luminance": 0.01637
}

Semantic roles & 50–950 ramp

primary
#181D4F
secondary
#867F3D
accent
#D04BDD
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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