#181977#181977

#181977 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.153 H 271.6°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#181977
RGBrgb(24, 25, 119)
HSLhsl(239, 66%, 28%)
HSVhsv(239, 80%, 47%)
CMYKcmyk(79.8%, 79%, 0%, 53.3%)
CIE-LABlab(16.61, 34.14, -52.86)
CIE-LCHlch(16.61, 62.93, 302.85°)
OKLaboklab(29.57% 0.0043 -0.153)
OKLCHoklch(29.57% 0.153 271.6)
XYZxyz(4.0530, 2.2209, 17.6643)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181977 #777618
analogous
#184977 #181977 #461877
triadic
#181977 #771819 #197718
tetradic
#181977 #771849 #777618 #187746
square
#181977 #771849 #777618 #187746
split-complementary
#181977 #774618 #497718
monochromatic
#050519 #0E0E44 #181977 #2224AA #3335D6

Accessibility & contrast

On white

14.54
#181977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181977
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181977#FFFFFF#000000##FFFFFF
##1819771.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181977;
/* rgb */ color: rgb(24, 25, 119);
/* oklch */ color: oklch(29.6% 0.153 271.6);
Tailwind
colors: {
  custom: {
    50: '#67579f',
    500: '#181977',
    950: '#000000',
  },
}
SCSS
$custom: #181977;
$custom-light: #67579f;
$custom-dark: #000000;
JSON
{
  "hex": "#181977",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 239.368,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29565,
    "c": 0.1531,
    "h": 271.6
  },
  "luminance": 0.02221
}

Semantic roles & 50–950 ramp

primary
#181977
secondary
#ACAB3F
accent
#E83EE9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #181977

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

Preview Lab → · Contrast checker → · Palette generator →

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