#162458#162458

#162458 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.3% C 0.096 H 268.3°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#162458
RGBrgb(22, 36, 88)
HSLhsl(227, 60%, 22%)
HSVhsv(227, 75%, 35%)
CMYKcmyk(75%, 59.1%, 0%, 65.5%)
CIE-LABlab(16.19, 14.24, -33.21)
CIE-LCHlch(16.19, 36.13, 293.22°)
OKLaboklab(28.28% -0.0029 -0.0956)
OKLCHoklch(28.28% 0.096 268.3)
XYZxyz(2.7226, 2.1366, 9.4996)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162458 #584A16
analogous
#164558 #162458 #291658
triadic
#162458 #581624 #245816
tetradic
#162458 #581645 #584A16 #165829
square
#162458 #581645 #584A16 #165829
split-complementary
#162458 #582916 #455816
monochromatic
#060A18 #0A1027 #162458 #223889 #2E4CBA

Accessibility & contrast

On white

14.71
#162458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#162458 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162458
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162458#FFFFFF#000000##FFFFFF
##1624581.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#00313A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #162458;
/* rgb */ color: rgb(22, 36, 88);
/* oklch */ color: oklch(28.3% 0.096 268.3);
Tailwind
colors: {
  custom: {
    50: '#5d5e88',
    500: '#162458',
    950: '#000000',
  },
}
SCSS
$custom: #162458;
$custom-light: #5d5e88;
$custom-dark: #000000;
JSON
{
  "hex": "#162458",
  "rgb": {
    "r": 22,
    "g": 36,
    "b": 88
  },
  "hsl": {
    "h": 227.273,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2828,
    "c": 0.0956,
    "h": 268.3
  },
  "luminance": 0.02137
}

Semantic roles & 50–950 ramp

primary
#162458
secondary
#8F7D3B
accent
#C245E3
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #162458

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

Preview Lab → · Contrast checker → · Palette generator →

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