#181877#181877

#181877 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.154 H 271.8°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#181877
RGBrgb(24, 24, 119)
HSLhsl(240, 66%, 28%)
HSVhsv(240, 80%, 47%)
CMYKcmyk(79.8%, 79.8%, 0%, 53.3%)
CIE-LABlab(16.40, 34.73, -53.20)
CIE-LCHlch(16.40, 63.53, 303.13°)
OKLaboklab(29.42% 0.0047 -0.154)
OKLCHoklch(29.42% 0.154 271.8)
XYZxyz(4.0320, 2.1789, 17.6573)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181877 #777718
analogous
#184777 #181877 #471877
triadic
#181877 #771818 #187718
tetradic
#181877 #771847 #777718 #187747
square
#181877 #771847 #777718 #187747
split-complementary
#181877 #774718 #477718
monochromatic
#050519 #0E0E44 #181877 #2222AA #3333D6

Accessibility & contrast

On white

14.63
#181877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#181877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181877
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181877#FFFFFF#000000##FFFFFF
##1818771.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181877;
/* rgb */ color: rgb(24, 24, 119);
/* oklch */ color: oklch(29.4% 0.154 271.8);
Tailwind
colors: {
  custom: {
    50: '#68569f',
    500: '#181877',
    950: '#000000',
  },
}
SCSS
$custom: #181877;
$custom-light: #68569f;
$custom-dark: #000000;
JSON
{
  "hex": "#181877",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 240,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29419,
    "c": 0.15409,
    "h": 271.8
  },
  "luminance": 0.02179
}

Semantic roles & 50–950 ramp

primary
#181877
secondary
#ACAC3F
accent
#E93EE9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #181877

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

Preview Lab → · Contrast checker → · Palette generator →

#181877 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva