#162F7C#162F7C

#162F7C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.0% C 0.134 H 265.7°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#162F7C
RGBrgb(22, 47, 124)
HSLhsl(225, 70%, 29%)
HSVhsv(225, 82%, 49%)
CMYKcmyk(82.3%, 62.1%, 0%, 51.4%)
CIE-LABlab(22.51, 21.17, -46.36)
CIE-LCHlch(22.51, 50.96, 294.54°)
OKLaboklab(33.99% -0.0101 -0.134)
OKLCHoklch(33.99% 0.134 265.7)
XYZxyz(4.9842, 3.6583, 19.5083)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F7C #7C6316
analogous
#16627C #162F7C #30167C
triadic
#162F7C #7C162F #2F7C16
tetradic
#162F7C #7C1662 #7C6316 #167C30
square
#162F7C #7C1662 #7C6316 #167C30
split-complementary
#162F7C #7C3016 #627C16
monochromatic
#050A1A #0D1B48 #162F7C #1F43B0 #325BDB

Accessibility & contrast

On white

12.13
#162F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#162F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162F7C
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F7C#FFFFFF#000000##FFFFFF
##162F7C1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #162f7c;
/* rgb */ color: rgb(22, 47, 124);
/* oklch */ color: oklch(34.0% 0.134 265.7);
Tailwind
colors: {
  custom: {
    50: '#6667a3',
    500: '#162f7c',
    950: '#000000',
  },
}
SCSS
$custom: #162f7c;
$custom-light: #6667a3;
$custom-dark: #000000;
JSON
{
  "hex": "#162f7c",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 225.294,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33989,
    "c": 0.13439,
    "h": 265.7
  },
  "luminance": 0.03659
}

Semantic roles & 50–950 ramp

primary
#162F7C
secondary
#B1953D
accent
#C13BED
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #162F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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