#162954#162954

#162954 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.1% C 0.082 H 264.1°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#162954
RGBrgb(22, 41, 84)
HSLhsl(222, 58%, 21%)
HSVhsv(222, 74%, 33%)
CMYKcmyk(73.8%, 51.2%, 0%, 67.1%)
CIE-LABlab(17.44, 8.85, -28.50)
CIE-LCHlch(17.44, 29.84, 287.26°)
OKLaboklab(29.13% -0.0085 -0.0816)
OKLCHoklch(29.13% 0.082 264.1)
XYZxyz(2.7235, 2.3963, 8.7048)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162954 #544116
analogous
#164854 #162954 #221654
triadic
#162954 #541629 #295416
tetradic
#162954 #541648 #544116 #165422
square
#162954 #541648 #544116 #165422
split-complementary
#162954 #542216 #485416
monochromatic
#060C18 #091124 #162954 #234184 #2F58B5

Accessibility & contrast

On white

14.19
#162954 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#162954 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162954
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162954#FFFFFF#000000##FFFFFF
##1629541.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132E56
Deuteranopia (green-blind)
#062853
Tritanopia (blue-blind)
#00333A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #162954;
/* rgb */ color: rgb(22, 41, 84);
/* oklch */ color: oklch(29.1% 0.082 264.1);
Tailwind
colors: {
  custom: {
    50: '#5c6284',
    500: '#162954',
    950: '#000000',
  },
}
SCSS
$custom: #162954;
$custom-light: #5c6284;
$custom-dark: #000000;
JSON
{
  "hex": "#162954",
  "rgb": {
    "r": 22,
    "g": 41,
    "b": 84
  },
  "hsl": {
    "h": 221.613,
    "s": 58.491,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29133,
    "c": 0.08205,
    "h": 264.1
  },
  "luminance": 0.02397
}

Semantic roles & 50–950 ramp

primary
#162954
secondary
#8B733A
accent
#B246E2
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #162954

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

Preview Lab → · Contrast checker → · Palette generator →

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