#162A62#162A62

#162A62 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.5% C 0.103 H 265.7°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#162A62
RGBrgb(22, 42, 98)
HSLhsl(224, 63%, 24%)
HSVhsv(224, 78%, 38%)
CMYKcmyk(77.6%, 57.1%, 0%, 61.6%)
CIE-LABlab(18.83, 13.99, -35.56)
CIE-LCHlch(18.83, 38.21, 291.48°)
OKLaboklab(30.54% -0.0076 -0.1024)
OKLCHoklch(30.54% 0.103 265.7)
XYZxyz(3.3627, 2.7080, 11.8984)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A62 #624E16
analogous
#165062 #162A62 #281662
triadic
#162A62 #62162A #2A6216
tetradic
#162A62 #621650 #624E16 #166228
square
#162A62 #621650 #624E16 #166228
split-complementary
#162A62 #622816 #506216
monochromatic
#060B19 #0B1530 #162A62 #213F94 #2C55C6

Accessibility & contrast

On white

13.62
#162A62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#162A62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A62
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A62#FFFFFF#000000##FFFFFF
##162A621.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023164
Deuteranopia (green-blind)
#002A61
Tritanopia (blue-blind)
#003841
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #162a62;
/* rgb */ color: rgb(22, 42, 98);
/* oklch */ color: oklch(30.5% 0.103 265.7);
Tailwind
colors: {
  custom: {
    50: '#5f638f',
    500: '#162a62',
    950: '#000000',
  },
}
SCSS
$custom: #162a62;
$custom-light: #5f638f;
$custom-dark: #000000;
JSON
{
  "hex": "#162a62",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 98
  },
  "hsl": {
    "h": 224.211,
    "s": 63.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30536,
    "c": 0.10265,
    "h": 265.7
  },
  "luminance": 0.02708
}

Semantic roles & 50–950 ramp

primary
#162A62
secondary
#99803B
accent
#BB41E6
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #162A62

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

Preview Lab → · Contrast checker → · Palette generator →

#162A62 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva