#181778#181778

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

Color values

HEX#181778
RGBrgb(24, 23, 120)
HSLhsl(241, 68%, 28%)
HSVhsv(241, 81%, 47%)
CMYKcmyk(80%, 80.8%, 0%, 52.9%)
CIE-LABlab(16.32, 35.65, -53.98)
CIE-LCHlch(16.32, 64.69, 303.44°)
OKLaboklab(29.4% 0.0049 -0.1563)
OKLCHoklch(29.4% 0.156 271.8)
XYZxyz(4.0721, 2.1626, 17.9685)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181778 #777817
analogous
#174678 #181778 #491778
triadic
#181778 #781817 #177818
tetradic
#181778 #781746 #777817 #177849
square
#181778 #781746 #777817 #177849
split-complementary
#181778 #784917 #467817
monochromatic
#05051A #0E0D45 #181778 #2221AB #3332D8

Accessibility & contrast

On white

14.66
#181778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181778
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181778#FFFFFF#000000##FFFFFF
##1817781.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7B
Deuteranopia (green-blind)
#002476
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181778;
/* rgb */ color: rgb(24, 23, 120);
/* oklch */ color: oklch(29.4% 0.156 271.8);
Tailwind
colors: {
  custom: {
    50: '#6856a0',
    500: '#181778',
    950: '#000000',
  },
}
SCSS
$custom: #181778;
$custom-light: #6856a0;
$custom-dark: #000000;
JSON
{
  "hex": "#181778",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 240.619,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29398,
    "c": 0.15634,
    "h": 271.8
  },
  "luminance": 0.02163
}

Semantic roles & 50–950 ramp

primary
#181778
secondary
#ACAD3E
accent
#EB3DE9
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181778

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

Preview Lab → · Contrast checker → · Palette generator →

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