#181B78#181B78

#181B78 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.152 H 271.2°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#181B78
RGBrgb(24, 27, 120)
HSLhsl(238, 67%, 28%)
HSVhsv(238, 80%, 47%)
CMYKcmyk(80%, 77.5%, 0%, 52.9%)
CIE-LABlab(17.15, 33.29, -52.61)
CIE-LCHlch(17.15, 62.25, 302.32°)
OKLaboklab(29.98% 0.0033 -0.1523)
OKLCHoklch(29.98% 0.152 271.2)
XYZxyz(4.1576, 2.3337, 17.9970)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B78 #787518
analogous
#184B78 #181B78 #451878
triadic
#181B78 #78181B #1B7818
tetradic
#181B78 #78184B #787518 #187845
square
#181B78 #78184B #787518 #187845
split-complementary
#181B78 #784518 #4B7818
monochromatic
#05061A #0E1045 #181B78 #2226AB #3439D6

Accessibility & contrast

On white

14.32
#181B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#181B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B78
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B78#FFFFFF#000000##FFFFFF
##181B781.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181b78;
/* rgb */ color: rgb(24, 27, 120);
/* oklch */ color: oklch(30.0% 0.152 271.2);
Tailwind
colors: {
  custom: {
    50: '#6858a0',
    500: '#181b78',
    950: '#000000',
  },
}
SCSS
$custom: #181b78;
$custom-light: #6858a0;
$custom-dark: #000000;
JSON
{
  "hex": "#181b78",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 238.125,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29984,
    "c": 0.15236,
    "h": 271.2
  },
  "luminance": 0.02334
}

Semantic roles & 50–950 ramp

primary
#181B78
secondary
#ADA93F
accent
#E43EEA
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181B78

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

Preview Lab → · Contrast checker → · Palette generator →

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