#162F58#162F58

#162F58 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 30.9% C 0.080 H 259.8°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#162F58
RGBrgb(22, 47, 88)
HSLhsl(217, 60%, 22%)
HSVhsv(217, 75%, 35%)
CMYKcmyk(75%, 46.6%, 0%, 65.5%)
CIE-LABlab(19.67, 6.14, -27.60)
CIE-LCHlch(19.67, 28.27, 282.54°)
OKLaboklab(30.94% -0.0142 -0.0789)
OKLCHoklch(30.94% 0.08 259.8)
XYZxyz(3.1082, 2.9079, 9.6281)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F58 #583F16
analogous
#165058 #162F58 #1E1658
triadic
#162F58 #58162F #2F5816
tetradic
#162F58 #581650 #583F16 #16581E
square
#162F58 #581650 #583F16 #16581E
split-complementary
#162F58 #581E16 #505816
monochromatic
#060D18 #0A1527 #162F58 #224989 #2E63BA

Accessibility & contrast

On white

13.28
#162F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#162F58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162F58
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F58#FFFFFF#000000##FFFFFF
##162F581.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B335A
Deuteranopia (green-blind)
#102D57
Tritanopia (blue-blind)
#00393F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #162f58;
/* rgb */ color: rgb(22, 47, 88);
/* oklch */ color: oklch(30.9% 0.080 259.8);
Tailwind
colors: {
  custom: {
    50: '#5c6787',
    500: '#162f58',
    950: '#000000',
  },
}
SCSS
$custom: #162f58;
$custom-light: #5c6787;
$custom-dark: #000000;
JSON
{
  "hex": "#162f58",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 88
  },
  "hsl": {
    "h": 217.273,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.30938,
    "c": 0.08014,
    "h": 259.8
  },
  "luminance": 0.02908
}

Semantic roles & 50–950 ramp

primary
#162F58
secondary
#8F6F3B
accent
#A745E3
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060B
muted
#797A7C

Preview Lab

Preview with #162F58

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

Preview Lab → · Contrast checker → · Palette generator →

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