#162562#162562

#162562 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.4% C 0.110 H 268.3°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#162562
RGBrgb(22, 37, 98)
HSLhsl(228, 63%, 24%)
HSVhsv(228, 78%, 38%)
CMYKcmyk(77.6%, 62.2%, 0%, 61.6%)
CIE-LABlab(17.34, 17.66, -37.98)
CIE-LCHlch(17.34, 41.88, 294.94°)
OKLaboklab(29.42% -0.0033 -0.1096)
OKLCHoklch(29.42% 0.11 268.3)
XYZxyz(3.1963, 2.3752, 11.8429)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162562 #625316
analogous
#164B62 #162562 #2D1662
triadic
#162562 #621625 #256216
tetradic
#162562 #62164B #625316 #16622D
square
#162562 #62164B #625316 #16622D
split-complementary
#162562 #622D16 #4B6216
monochromatic
#060919 #0B1230 #162562 #213894 #2C4BC6

Accessibility & contrast

On white

14.24
#162562 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162562
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162562#FFFFFF#000000##FFFFFF
##1625621.0014.241.4814.24
#FFFFFF14.241.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E64
Deuteranopia (green-blind)
#002761
Tritanopia (blue-blind)
#00343F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #162562;
/* rgb */ color: rgb(22, 37, 98);
/* oklch */ color: oklch(29.4% 0.110 268.3);
Tailwind
colors: {
  custom: {
    50: '#605f8f',
    500: '#162562',
    950: '#000000',
  },
}
SCSS
$custom: #162562;
$custom-light: #605f8f;
$custom-dark: #000000;
JSON
{
  "hex": "#162562",
  "rgb": {
    "r": 22,
    "g": 37,
    "b": 98
  },
  "hsl": {
    "h": 228.158,
    "s": 63.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29417,
    "c": 0.10962,
    "h": 268.3
  },
  "luminance": 0.02376
}

Semantic roles & 50–950 ramp

primary
#162562
secondary
#99863B
accent
#C641E6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #162562

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

Preview Lab → · Contrast checker → · Palette generator →

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