#181A77#181A77

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

Color values

HEX#181A77
RGBrgb(24, 26, 119)
HSLhsl(239, 66%, 28%)
HSVhsv(239, 80%, 47%)
CMYKcmyk(79.8%, 78.2%, 0%, 53.3%)
CIE-LABlab(16.82, 33.54, -52.51)
CIE-LCHlch(16.82, 62.31, 302.57°)
OKLaboklab(29.72% 0.0039 -0.152)
OKLCHoklch(29.72% 0.152 271.5)
XYZxyz(4.0747, 2.2644, 17.6715)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A77 #777518
analogous
#184977 #181A77 #451877
triadic
#181A77 #77181A #1A7718
tetradic
#181A77 #771849 #777518 #187745
square
#181A77 #771849 #777518 #187745
split-complementary
#181A77 #774518 #497718
monochromatic
#050619 #0E0F44 #181A77 #2225AA #3337D6

Accessibility & contrast

On white

14.45
#181A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#181A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A77
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A77#FFFFFF#000000##FFFFFF
##181A771.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002575
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181a77;
/* rgb */ color: rgb(24, 26, 119);
/* oklch */ color: oklch(29.7% 0.152 271.5);
Tailwind
colors: {
  custom: {
    50: '#67589f',
    500: '#181a77',
    950: '#000000',
  },
}
SCSS
$custom: #181a77;
$custom-light: #67589f;
$custom-dark: #000000;
JSON
{
  "hex": "#181a77",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 119
  },
  "hsl": {
    "h": 238.737,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29715,
    "c": 0.15208,
    "h": 271.5
  },
  "luminance": 0.02265
}

Semantic roles & 50–950 ramp

primary
#181A77
secondary
#ACAA3F
accent
#E63EE9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #181A77

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

Preview Lab → · Contrast checker → · Palette generator →

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