#162A61#162A61

#162A61 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.4% C 0.101 H 265.6°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#162A61
RGBrgb(22, 42, 97)
HSLhsl(224, 63%, 23%)
HSVhsv(224, 77%, 38%)
CMYKcmyk(77.3%, 56.7%, 0%, 62%)
CIE-LABlab(18.75, 13.58, -35.03)
CIE-LCHlch(18.75, 37.57, 291.18°)
OKLaboklab(30.45% -0.0077 -0.1008)
OKLCHoklch(30.45% 0.101 265.6)
XYZxyz(3.3158, 2.6892, 11.6513)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A61 #614D16
analogous
#164F61 #162A61 #271661
triadic
#162A61 #61162A #2A6116
tetradic
#162A61 #61164F #614D16 #166127
square
#162A61 #61164F #614D16 #166127
split-complementary
#162A61 #612716 #4F6116
monochromatic
#060B19 #0B142F #162A61 #214093 #2D55C5

Accessibility & contrast

On white

13.65
#162A61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162A61
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A61#FFFFFF#000000##FFFFFF
##162A611.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043163
Deuteranopia (green-blind)
#002A60
Tritanopia (blue-blind)
#003741
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #162a61;
/* rgb */ color: rgb(22, 42, 97);
/* oklch */ color: oklch(30.4% 0.101 265.6);
Tailwind
colors: {
  custom: {
    50: '#5f638e',
    500: '#162a61',
    950: '#000000',
  },
}
SCSS
$custom: #162a61;
$custom-light: #5f638e;
$custom-dark: #000000;
JSON
{
  "hex": "#162a61",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 97
  },
  "hsl": {
    "h": 224,
    "s": 63.025,
    "l": 23.333
  },
  "oklch": {
    "l": 0.3045,
    "c": 0.10112,
    "h": 265.6
  },
  "luminance": 0.0269
}

Semantic roles & 50–950 ramp

primary
#162A61
secondary
#987F3B
accent
#BA42E6
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #162A61

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

Preview Lab → · Contrast checker → · Palette generator →

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