#181878#181878

#181878 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.155 H 271.7°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#181878
RGBrgb(24, 24, 120)
HSLhsl(240, 67%, 28%)
HSVhsv(240, 80%, 47%)
CMYKcmyk(80%, 80%, 0%, 52.9%)
CIE-LABlab(16.52, 35.08, -53.65)
CIE-LCHlch(16.52, 64.10, 303.18°)
OKLaboklab(29.54% 0.0045 -0.1553)
OKLCHoklch(29.54% 0.155 271.7)
XYZxyz(4.0923, 2.2031, 17.9752)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181878 #787818
analogous
#184878 #181878 #481878
triadic
#181878 #781818 #187818
tetradic
#181878 #781848 #787818 #187848
square
#181878 #781848 #787818 #187848
split-complementary
#181878 #784818 #487818
monochromatic
#05051A #0E0E45 #181878 #2222AB #3434D6

Accessibility & contrast

On white

14.58
#181878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181878
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181878#FFFFFF#000000##FFFFFF
##1818781.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181878;
/* rgb */ color: rgb(24, 24, 120);
/* oklch */ color: oklch(29.5% 0.155 271.7);
Tailwind
colors: {
  custom: {
    50: '#6857a0',
    500: '#181878',
    950: '#000000',
  },
}
SCSS
$custom: #181878;
$custom-light: #6857a0;
$custom-dark: #000000;
JSON
{
  "hex": "#181878",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 240,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29538,
    "c": 0.15538,
    "h": 271.7
  },
  "luminance": 0.02204
}

Semantic roles & 50–950 ramp

primary
#181878
secondary
#ADAD3F
accent
#EA3EEA
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181878

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

Preview Lab → · Contrast checker → · Palette generator →

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