#181D50#181D50

#181D50 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.1% C 0.093 H 273.9°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#181D50
RGBrgb(24, 29, 80)
HSLhsl(235, 54%, 20%)
HSVhsv(235, 70%, 31%)
CMYKcmyk(70%, 63.7%, 0%, 68.6%)
CIE-LABlab(13.54, 16.51, -32.08)
CIE-LCHlch(13.54, 36.08, 297.23°)
OKLaboklab(26.12% 0.0062 -0.0923)
OKLCHoklch(26.12% 0.093 273.9)
XYZxyz(2.2635, 1.6519, 7.7874)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D50 #504B18
analogous
#183950 #181D50 #2F1850
triadic
#181D50 #50181D #1D5018
tetradic
#181D50 #501839 #504B18 #18502F
square
#181D50 #501839 #504B18 #18502F
split-complementary
#181D50 #502F18 #395018
monochromatic
#070918 #0A0C21 #181D50 #262E7F #343FAE

Accessibility & contrast

On white

15.78
#181D50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181D50
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D50#FFFFFF#000000##FFFFFF
##181D501.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002552
Deuteranopia (green-blind)
#00204F
Tritanopia (blue-blind)
#002933
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181d50;
/* rgb */ color: rgb(24, 29, 80);
/* oklch */ color: oklch(26.1% 0.093 273.9);
Tailwind
colors: {
  custom: {
    50: '#5d5882',
    500: '#181d50',
    950: '#000000',
  },
}
SCSS
$custom: #181d50;
$custom-light: #5d5882;
$custom-dark: #000000;
JSON
{
  "hex": "#181d50",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 80
  },
  "hsl": {
    "h": 234.643,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.2612,
    "c": 0.09251,
    "h": 273.9
  },
  "luminance": 0.01652
}

Semantic roles & 50–950 ramp

primary
#181D50
secondary
#87803D
accent
#D04BDD
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #181D50

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

Preview Lab → · Contrast checker → · Palette generator →

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