#162A5F#162A5F

#162A5F is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.3% C 0.098 H 265.3°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#162A5F
RGBrgb(22, 42, 95)
HSLhsl(224, 62%, 23%)
HSVhsv(224, 77%, 37%)
CMYKcmyk(76.8%, 55.8%, 0%, 62.7%)
CIE-LABlab(18.59, 12.74, -33.97)
CIE-LCHlch(18.59, 36.28, 290.55°)
OKLaboklab(30.28% -0.0079 -0.0977)
OKLCHoklch(30.28% 0.098 265.3)
XYZxyz(3.2237, 2.6524, 11.1663)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A5F #5F4B16
analogous
#164E5F #162A5F #27165F
triadic
#162A5F #5F162A #2A5F16
tetradic
#162A5F #5F164E #5F4B16 #165F27
square
#162A5F #5F164E #5F4B16 #165F27
split-complementary
#162A5F #5F2716 #4E5F16
monochromatic
#060B19 #0A142D #162A5F #224091 #2D56C2

Accessibility & contrast

On white

13.72
#162A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#162A5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A5F
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A5F#FFFFFF#000000##FFFFFF
##162A5F1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073161
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#003740
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #162a5f;
/* rgb */ color: rgb(22, 42, 95);
/* oklch */ color: oklch(30.3% 0.098 265.3);
Tailwind
colors: {
  custom: {
    50: '#5e638d',
    500: '#162a5f',
    950: '#000000',
  },
}
SCSS
$custom: #162a5f;
$custom-light: #5e638d;
$custom-dark: #000000;
JSON
{
  "hex": "#162a5f",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 95
  },
  "hsl": {
    "h": 223.562,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30278,
    "c": 0.09802,
    "h": 265.3
  },
  "luminance": 0.02653
}

Semantic roles & 50–950 ramp

primary
#162A5F
secondary
#967D3B
accent
#B942E5
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #162A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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