#181D77#181D77

#181D77 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.2% C 0.149 H 271.0°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#181D77
RGBrgb(24, 29, 119)
HSLhsl(237, 66%, 28%)
HSVhsv(237, 80%, 47%)
CMYKcmyk(79.8%, 75.6%, 0%, 53.3%)
CIE-LABlab(17.48, 31.68, -51.42)
CIE-LCHlch(17.48, 60.39, 301.64°)
OKLaboklab(30.19% 0.0025 -0.1489)
OKLCHoklch(30.19% 0.149 271)
XYZxyz(4.1447, 2.4044, 17.6948)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D77 #777218
analogous
#184C77 #181D77 #421877
triadic
#181D77 #77181D #1D7718
tetradic
#181D77 #77184C #777218 #187742
square
#181D77 #77184C #777218 #187742
split-complementary
#181D77 #774218 #4C7718
monochromatic
#050619 #0E1144 #181D77 #2229AA #333CD6

Accessibility & contrast

On white

14.18
#181D77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#181D77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D77
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D77#FFFFFF#000000##FFFFFF
##181D771.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002675
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #181d77;
/* rgb */ color: rgb(24, 29, 119);
/* oklch */ color: oklch(30.2% 0.149 271.0);
Tailwind
colors: {
  custom: {
    50: '#675a9f',
    500: '#181d77',
    950: '#000000',
  },
}
SCSS
$custom: #181d77;
$custom-light: #675a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#181d77",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 119
  },
  "hsl": {
    "h": 236.842,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30187,
    "c": 0.14889,
    "h": 271
  },
  "luminance": 0.02405
}

Semantic roles & 50–950 ramp

primary
#181D77
secondary
#ACA63F
accent
#E03EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #181D77

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

Preview Lab → · Contrast checker → · Palette generator →

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