#181A78#181A78

#181A78 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.153 H 271.4°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#181A78
RGBrgb(24, 26, 120)
HSLhsl(239, 67%, 28%)
HSVhsv(239, 80%, 47%)
CMYKcmyk(80%, 78.3%, 0%, 52.9%)
CIE-LABlab(16.93, 33.90, -52.96)
CIE-LCHlch(16.93, 62.88, 302.62°)
OKLaboklab(29.83% 0.0037 -0.1533)
OKLCHoklch(29.83% 0.153 271.4)
XYZxyz(4.1351, 2.2886, 17.9895)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A78 #787618
analogous
#184A78 #181A78 #461878
triadic
#181A78 #78181A #1A7818
tetradic
#181A78 #78184A #787618 #187846
square
#181A78 #78184A #787618 #187846
split-complementary
#181A78 #784618 #4A7818
monochromatic
#05061A #0E0F45 #181A78 #2225AB #3437D6

Accessibility & contrast

On white

14.41
#181A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#181A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A78
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A78#FFFFFF#000000##FFFFFF
##181A781.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002576
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #181a78;
/* rgb */ color: rgb(24, 26, 120);
/* oklch */ color: oklch(29.8% 0.153 271.4);
Tailwind
colors: {
  custom: {
    50: '#6858a0',
    500: '#181a78',
    950: '#000000',
  },
}
SCSS
$custom: #181a78;
$custom-light: #6858a0;
$custom-dark: #000000;
JSON
{
  "hex": "#181a78",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 238.75,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29832,
    "c": 0.15338,
    "h": 271.4
  },
  "luminance": 0.02289
}

Semantic roles & 50–950 ramp

primary
#181A78
secondary
#ADAB3F
accent
#E63EEA
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181A78

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

Preview Lab → · Contrast checker → · Palette generator →

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