#162878#162878

#162878 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.138 H 267.7°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#162878
RGBrgb(22, 40, 120)
HSLhsl(229, 69%, 28%)
HSVhsv(229, 82%, 47%)
CMYKcmyk(81.7%, 66.7%, 0%, 52.9%)
CIE-LABlab(20.22, 24.48, -47.56)
CIE-LCHlch(20.22, 53.49, 297.24°)
OKLaboklab(32.18% -0.0056 -0.1376)
OKLCHoklch(32.18% 0.138 267.7)
XYZxyz(4.4787, 3.0437, 18.1171)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162878 #786616
analogous
#165978 #162878 #351678
triadic
#162878 #781628 #287816
tetradic
#162878 #781659 #786616 #167835
square
#162878 #781659 #786616 #167835
split-complementary
#162878 #783516 #597816
monochromatic
#05091A #0D1744 #162878 #1F39AC #2F4FD9

Accessibility & contrast

On white

13.05
#162878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#162878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162878
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162878#FFFFFF#000000##FFFFFF
##1628781.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #162878;
/* rgb */ color: rgb(22, 40, 120);
/* oklch */ color: oklch(32.2% 0.138 267.7);
Tailwind
colors: {
  custom: {
    50: '#6661a0',
    500: '#162878',
    950: '#000000',
  },
}
SCSS
$custom: #162878;
$custom-light: #6661a0;
$custom-dark: #000000;
JSON
{
  "hex": "#162878",
  "rgb": {
    "r": 22,
    "g": 40,
    "b": 120
  },
  "hsl": {
    "h": 228.98,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32177,
    "c": 0.13773,
    "h": 267.7
  },
  "luminance": 0.03044
}

Semantic roles & 50–950 ramp

primary
#162878
secondary
#AD993C
accent
#CC3CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #162878

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

Preview Lab → · Contrast checker → · Palette generator →

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