#162662#162662

#162662 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.6% C 0.108 H 267.8°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#162662
RGBrgb(22, 38, 98)
HSLhsl(227, 63%, 24%)
HSVhsv(227, 78%, 38%)
CMYKcmyk(77.6%, 61.2%, 0%, 61.6%)
CIE-LABlab(17.64, 16.93, -37.50)
CIE-LCHlch(17.64, 41.15, 294.30°)
OKLaboklab(29.64% -0.0041 -0.1081)
OKLCHoklch(29.64% 0.108 267.8)
XYZxyz(3.2278, 2.4383, 11.8534)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162662 #625216
analogous
#164C62 #162662 #2C1662
triadic
#162662 #621626 #266216
tetradic
#162662 #62164C #625216 #16622C
square
#162662 #62164C #625216 #16622C
split-complementary
#162662 #622C16 #4C6216
monochromatic
#060A19 #0B1330 #162662 #213994 #2C4DC6

Accessibility & contrast

On white

14.11
#162662 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162662
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162662#FFFFFF#000000##FFFFFF
##1626621.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F64
Deuteranopia (green-blind)
#002861
Tritanopia (blue-blind)
#003540
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #162662;
/* rgb */ color: rgb(22, 38, 98);
/* oklch */ color: oklch(29.6% 0.108 267.8);
Tailwind
colors: {
  custom: {
    50: '#605f8f',
    500: '#162662',
    950: '#000000',
  },
}
SCSS
$custom: #162662;
$custom-light: #605f8f;
$custom-dark: #000000;
JSON
{
  "hex": "#162662",
  "rgb": {
    "r": 22,
    "g": 38,
    "b": 98
  },
  "hsl": {
    "h": 227.368,
    "s": 63.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29636,
    "c": 0.10823,
    "h": 267.8
  },
  "luminance": 0.02439
}

Semantic roles & 50–950 ramp

primary
#162662
secondary
#99853B
accent
#C441E6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #162662

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

Preview Lab → · Contrast checker → · Palette generator →

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