#162F5C#162F5C

#162F5C is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.2% C 0.086 H 261.1°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#162F5C
RGBrgb(22, 47, 92)
HSLhsl(219, 61%, 22%)
HSVhsv(219, 76%, 36%)
CMYKcmyk(76.1%, 48.9%, 0%, 63.9%)
CIE-LABlab(19.95, 7.81, -29.81)
CIE-LCHlch(19.95, 30.82, 284.69°)
OKLaboklab(31.24% -0.0134 -0.0854)
OKLCHoklch(31.24% 0.086 261.1)
XYZxyz(3.2785, 2.9760, 10.5248)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F5C #5C4316
analogous
#16525C #162F5C #20165C
triadic
#162F5C #5C162F #2F5C16
tetradic
#162F5C #5C1652 #5C4316 #165C20
square
#162F5C #5C1652 #5C4316 #165C20
split-complementary
#162F5C #5C2016 #525C16
monochromatic
#060D19 #0A162B #162F5C #22488D #2E61BF

Accessibility & contrast

On white

13.16
#162F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#162F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162F5C
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F5C#FFFFFF#000000##FFFFFF
##162F5C1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18345E
Deuteranopia (green-blind)
#0A2D5B
Tritanopia (blue-blind)
#003A41
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #162f5c;
/* rgb */ color: rgb(22, 47, 92);
/* oklch */ color: oklch(31.2% 0.086 261.1);
Tailwind
colors: {
  custom: {
    50: '#5d678a',
    500: '#162f5c',
    950: '#000000',
  },
}
SCSS
$custom: #162f5c;
$custom-light: #5d678a;
$custom-dark: #000000;
JSON
{
  "hex": "#162f5c",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 92
  },
  "hsl": {
    "h": 218.571,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.31241,
    "c": 0.0864,
    "h": 261.1
  },
  "luminance": 0.02976
}

Semantic roles & 50–950 ramp

primary
#162F5C
secondary
#93743B
accent
#AB43E5
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #162F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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