#162E78#162E78

#162E78 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.4% C 0.130 H 265.8°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#162E78
RGBrgb(22, 46, 120)
HSLhsl(225, 69%, 28%)
HSVhsv(225, 82%, 47%)
CMYKcmyk(81.7%, 61.7%, 0%, 52.9%)
CIE-LABlab(21.87, 20.24, -44.85)
CIE-LCHlch(21.87, 49.21, 294.29°)
OKLaboklab(33.4% -0.0095 -0.1296)
OKLCHoklch(33.4% 0.13 265.8)
XYZxyz(4.6968, 3.4801, 18.1898)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162E78 #786016
analogous
#165F78 #162E78 #2F1678
triadic
#162E78 #78162E #2E7816
tetradic
#162E78 #78165F #786016 #16782F
square
#162E78 #78165F #786016 #16782F
split-complementary
#162E78 #782F16 #5F7816
monochromatic
#050A1A #0D1A44 #162E78 #1F42AC #2F59D9

Accessibility & contrast

On white

12.38
#162E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#162E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162E78
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162E78#FFFFFF#000000##FFFFFF
##162E781.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #162e78;
/* rgb */ color: rgb(22, 46, 120);
/* oklch */ color: oklch(33.4% 0.130 265.8);
Tailwind
colors: {
  custom: {
    50: '#6566a0',
    500: '#162e78',
    950: '#000000',
  },
}
SCSS
$custom: #162e78;
$custom-light: #6566a0;
$custom-dark: #000000;
JSON
{
  "hex": "#162e78",
  "rgb": {
    "r": 22,
    "g": 46,
    "b": 120
  },
  "hsl": {
    "h": 225.306,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33404,
    "c": 0.12997,
    "h": 265.8
  },
  "luminance": 0.03481
}

Semantic roles & 50–950 ramp

primary
#162E78
secondary
#AD923C
accent
#C13CEC
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050F
muted
#7A7A7E

Preview Lab

Preview with #162E78

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

Preview Lab → · Contrast checker → · Palette generator →

#162E78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva