#162F78#162F78

#162F78 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.6% C 0.129 H 265.4°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#162F78
RGBrgb(22, 47, 120)
HSLhsl(225, 69%, 28%)
HSVhsv(225, 82%, 47%)
CMYKcmyk(81.7%, 60.8%, 0%, 52.9%)
CIE-LABlab(22.16, 19.53, -44.39)
CIE-LCHlch(22.16, 48.49, 293.74°)
OKLaboklab(33.62% -0.0102 -0.1282)
OKLCHoklch(33.62% 0.129 265.4)
XYZxyz(4.7364, 3.5591, 18.2030)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F78 #785F16
analogous
#166078 #162F78 #2E1678
triadic
#162F78 #78162F #2F7816
tetradic
#162F78 #781660 #785F16 #16782E
square
#162F78 #781660 #785F16 #16782E
split-complementary
#162F78 #782E16 #607816
monochromatic
#050A1A #0D1B44 #162F78 #1F43AC #2F5BD9

Accessibility & contrast

On white

12.27
#162F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#162F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162F78
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F78#FFFFFF#000000##FFFFFF
##162F781.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #162f78;
/* rgb */ color: rgb(22, 47, 120);
/* oklch */ color: oklch(33.6% 0.129 265.4);
Tailwind
colors: {
  custom: {
    50: '#6567a0',
    500: '#162f78',
    950: '#000000',
  },
}
SCSS
$custom: #162f78;
$custom-light: #6567a0;
$custom-dark: #000000;
JSON
{
  "hex": "#162f78",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 224.694,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33617,
    "c": 0.12865,
    "h": 265.4
  },
  "luminance": 0.0356
}

Semantic roles & 50–950 ramp

primary
#162F78
secondary
#AD913C
accent
#BF3CEC
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060F
muted
#7A7A7E

Preview Lab

Preview with #162F78

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

Preview Lab → · Contrast checker → · Palette generator →

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