#181777#181777

#181777 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.155 H 271.9°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#181777
RGBrgb(24, 23, 119)
HSLhsl(241, 68%, 28%)
HSVhsv(241, 81%, 47%)
CMYKcmyk(79.8%, 80.7%, 0%, 53.3%)
CIE-LABlab(16.20, 35.30, -53.54)
CIE-LCHlch(16.20, 64.13, 303.40°)
OKLaboklab(29.28% 0.0051 -0.155)
OKLCHoklch(29.28% 0.155 271.9)
XYZxyz(4.0117, 2.1385, 17.6505)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181777 #767717
analogous
#174677 #181777 #481777
triadic
#181777 #771817 #177718
tetradic
#181777 #771746 #767717 #177748
square
#181777 #771746 #767717 #177748
split-complementary
#181777 #774817 #467717
monochromatic
#05051A #0E0D44 #181777 #2221AA #3331D7

Accessibility & contrast

On white

14.71
#181777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#181777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181777
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181777#FFFFFF#000000##FFFFFF
##1817771.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7A
Deuteranopia (green-blind)
#002375
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181777;
/* rgb */ color: rgb(24, 23, 119);
/* oklch */ color: oklch(29.3% 0.155 271.9);
Tailwind
colors: {
  custom: {
    50: '#68569f',
    500: '#181777',
    950: '#000000',
  },
}
SCSS
$custom: #181777;
$custom-light: #68569f;
$custom-dark: #000000;
JSON
{
  "hex": "#181777",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 240.625,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29277,
    "c": 0.15506,
    "h": 271.9
  },
  "luminance": 0.02139
}

Semantic roles & 50–950 ramp

primary
#181777
secondary
#ABAC3E
accent
#EA3DE9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #181777

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

Preview Lab → · Contrast checker → · Palette generator →

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