#162858#162858

#162858 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.2% C 0.090 H 265.6°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#162858
RGBrgb(22, 40, 88)
HSLhsl(224, 60%, 22%)
HSVhsv(224, 75%, 35%)
CMYKcmyk(75%, 54.5%, 0%, 65.5%)
CIE-LABlab(17.43, 11.27, -31.21)
CIE-LCHlch(17.43, 33.18, 289.86°)
OKLaboklab(29.22% -0.0068 -0.0896)
OKLCHoklch(29.22% 0.09 265.6)
XYZxyz(2.8505, 2.3925, 9.5422)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162858 #584616
analogous
#164958 #162858 #251658
triadic
#162858 #581628 #285816
tetradic
#162858 #581649 #584616 #165825
square
#162858 #581649 #584616 #165825
split-complementary
#162858 #582516 #495816
monochromatic
#060B18 #0A1227 #162858 #223E89 #2E55BA

Accessibility & contrast

On white

14.20
#162858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162858
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162858#FFFFFF#000000##FFFFFF
##1628581.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2E5A
Deuteranopia (green-blind)
#002857
Tritanopia (blue-blind)
#00333B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #162858;
/* rgb */ color: rgb(22, 40, 88);
/* oklch */ color: oklch(29.2% 0.090 265.6);
Tailwind
colors: {
  custom: {
    50: '#5d6187',
    500: '#162858',
    950: '#000000',
  },
}
SCSS
$custom: #162858;
$custom-light: #5d6187;
$custom-dark: #000000;
JSON
{
  "hex": "#162858",
  "rgb": {
    "r": 22,
    "g": 40,
    "b": 88
  },
  "hsl": {
    "h": 223.636,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29216,
    "c": 0.08986,
    "h": 265.6
  },
  "luminance": 0.02393
}

Semantic roles & 50–950 ramp

primary
#162858
secondary
#8F783B
accent
#B845E3
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05050B
muted
#79797C

Preview Lab

Preview with #162858

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

Preview Lab → · Contrast checker → · Palette generator →

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