#162958#162958

#162958 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.5% C 0.088 H 264.9°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#162958
RGBrgb(22, 41, 88)
HSLhsl(223, 60%, 22%)
HSVhsv(223, 75%, 35%)
CMYKcmyk(75%, 53.4%, 0%, 65.5%)
CIE-LABlab(17.74, 10.53, -30.70)
CIE-LCHlch(17.74, 32.46, 288.93°)
OKLaboklab(29.46% -0.0079 -0.0881)
OKLCHoklch(29.46% 0.088 264.9)
XYZxyz(2.8846, 2.4607, 9.5536)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162958 #584516
analogous
#164A58 #162958 #241658
triadic
#162958 #581629 #295816
tetradic
#162958 #58164A #584516 #165824
square
#162958 #58164A #584516 #165824
split-complementary
#162958 #582416 #4A5816
monochromatic
#060B18 #0A1227 #162958 #224089 #2E57BA

Accessibility & contrast

On white

14.07
#162958 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#162958 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162958
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162958#FFFFFF#000000##FFFFFF
##1629581.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2F5A
Deuteranopia (green-blind)
#002957
Tritanopia (blue-blind)
#00343C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #162958;
/* rgb */ color: rgb(22, 41, 88);
/* oklch */ color: oklch(29.5% 0.088 264.9);
Tailwind
colors: {
  custom: {
    50: '#5d6287',
    500: '#162958',
    950: '#000000',
  },
}
SCSS
$custom: #162958;
$custom-light: #5d6287;
$custom-dark: #000000;
JSON
{
  "hex": "#162958",
  "rgb": {
    "r": 22,
    "g": 41,
    "b": 88
  },
  "hsl": {
    "h": 222.727,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29456,
    "c": 0.08844,
    "h": 264.9
  },
  "luminance": 0.02461
}

Semantic roles & 50–950 ramp

primary
#162958
secondary
#8F773B
accent
#B645E3
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#05050B
muted
#79797C

Preview Lab

Preview with #162958

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

Preview Lab → · Contrast checker → · Palette generator →

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