#162B8F#162B8F

#162B8F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.165 H 267.1°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#162B8F
RGBrgb(22, 43, 143)
HSLhsl(230, 73%, 32%)
HSVhsv(230, 85%, 56%)
CMYKcmyk(84.6%, 69.9%, 0%, 43.9%)
CIE-LABlab(23.27, 31.46, -57.01)
CIE-LCHlch(23.27, 65.11, 298.89°)
OKLaboklab(35.11% -0.0084 -0.1652)
OKLCHoklch(35.11% 0.165 267.1)
XYZxyz(6.1509, 3.8808, 26.4061)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162B8F #8F7A16
analogous
#16678F #162B8F #3E168F
triadic
#162B8F #8F162B #2B8F16
tetradic
#162B8F #8F1667 #8F7A16 #168F3E
square
#162B8F #8F1667 #8F7A16 #168F3E
split-complementary
#162B8F #8F3E16 #678F16
monochromatic
#060B25 #0E1B5A #162B8F #1E3BC4 #3E5AE1

Accessibility & contrast

On white

11.82
#162B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#162B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162B8F
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162B8F#FFFFFF#000000##FFFFFF
##162B8F1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #162b8f;
/* rgb */ color: rgb(22, 43, 143);
/* oklch */ color: oklch(35.1% 0.165 267.1);
Tailwind
colors: {
  custom: {
    50: '#6c64b1',
    500: '#162b8f',
    950: '#000000',
  },
}
SCSS
$custom: #162b8f;
$custom-light: #6c64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#162b8f",
  "rgb": {
    "r": 22,
    "g": 43,
    "b": 143
  },
  "hsl": {
    "h": 229.587,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35108,
    "c": 0.16543,
    "h": 267.1
  },
  "luminance": 0.03881
}

Semantic roles & 50–950 ramp

primary
#162B8F
secondary
#C1AB3F
accent
#D038F0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #162B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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