#181D78#181D78

#181D78 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.150 H 270.9°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#181D78
RGBrgb(24, 29, 120)
HSLhsl(237, 67%, 28%)
HSVhsv(237, 80%, 47%)
CMYKcmyk(80%, 75.8%, 0%, 52.9%)
CIE-LABlab(17.59, 32.05, -51.87)
CIE-LCHlch(17.59, 60.98, 301.71°)
OKLaboklab(30.3% 0.0024 -0.1502)
OKLCHoklch(30.3% 0.15 270.9)
XYZxyz(4.2051, 2.4285, 18.0128)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D78 #787318
analogous
#184D78 #181D78 #431878
triadic
#181D78 #78181D #1D7818
tetradic
#181D78 #78184D #787318 #187843
square
#181D78 #78184D #787318 #187843
split-complementary
#181D78 #784318 #4D7818
monochromatic
#05061A #0E1145 #181D78 #2229AB #343CD6

Accessibility & contrast

On white

14.13
#181D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#181D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D78
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D78#FFFFFF#000000##FFFFFF
##181D781.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181d78;
/* rgb */ color: rgb(24, 29, 120);
/* oklch */ color: oklch(30.3% 0.150 270.9);
Tailwind
colors: {
  custom: {
    50: '#675aa0',
    500: '#181d78',
    950: '#000000',
  },
}
SCSS
$custom: #181d78;
$custom-light: #675aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#181d78",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 236.875,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.303,
    "c": 0.15022,
    "h": 270.9
  },
  "luminance": 0.02429
}

Semantic roles & 50–950 ramp

primary
#181D78
secondary
#ADA73F
accent
#E13EEA
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #181D78

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

Preview Lab → · Contrast checker → · Palette generator →

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