#181E78#181E78

#181E78 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.149 H 270.7°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#181E78
RGBrgb(24, 30, 120)
HSLhsl(236, 67%, 28%)
HSVhsv(236, 80%, 47%)
CMYKcmyk(80%, 75%, 0%, 52.9%)
CIE-LABlab(17.82, 31.41, -51.50)
CIE-LCHlch(17.82, 60.32, 301.38°)
OKLaboklab(30.46% 0.0019 -0.1491)
OKLCHoklch(30.46% 0.149 270.7)
XYZxyz(4.2300, 2.4783, 18.0211)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E78 #787218
analogous
#184E78 #181E78 #421878
triadic
#181E78 #78181E #1E7818
tetradic
#181E78 #78184E #787218 #187842
square
#181E78 #78184E #787218 #187842
split-complementary
#181E78 #784218 #4E7818
monochromatic
#05061A #0E1145 #181E78 #222BAB #343ED6

Accessibility & contrast

On white

14.04
#181E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#181E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E78
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E78#FFFFFF#000000##FFFFFF
##181E781.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002776
Tritanopia (blue-blind)
#003849
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181e78;
/* rgb */ color: rgb(24, 30, 120);
/* oklch */ color: oklch(30.5% 0.149 270.7);
Tailwind
colors: {
  custom: {
    50: '#675aa0',
    500: '#181e78',
    950: '#000000',
  },
}
SCSS
$custom: #181e78;
$custom-light: #675aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#181e78",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 120
  },
  "hsl": {
    "h": 236.25,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30463,
    "c": 0.14912,
    "h": 270.7
  },
  "luminance": 0.02479
}

Semantic roles & 50–950 ramp

primary
#181E78
secondary
#ADA63F
accent
#DF3EEA
background
#F6F5FA
surface
#EBE9F3
border
#C6C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #181E78

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

Preview Lab → · Contrast checker → · Palette generator →

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