#162E7C#162E7C

#162E7C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.136 H 266.0°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#162E7C
RGBrgb(22, 46, 124)
HSLhsl(226, 70%, 29%)
HSVhsv(226, 82%, 49%)
CMYKcmyk(82.3%, 62.9%, 0%, 51.4%)
CIE-LABlab(22.23, 21.88, -46.81)
CIE-LCHlch(22.23, 51.67, 295.05°)
OKLaboklab(33.78% -0.0095 -0.1354)
OKLCHoklch(33.78% 0.136 266)
XYZxyz(4.9447, 3.5792, 19.4951)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162E7C #7C6416
analogous
#16617C #162E7C #31167C
triadic
#162E7C #7C162E #2E7C16
tetradic
#162E7C #7C1661 #7C6416 #167C31
square
#162E7C #7C1661 #7C6416 #167C31
split-complementary
#162E7C #7C3116 #617C16
monochromatic
#050A1A #0D1B48 #162E7C #1F41B0 #325ADB

Accessibility & contrast

On white

12.24
#162E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#162E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162E7C
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162E7C#FFFFFF#000000##FFFFFF
##162E7C1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #162e7c;
/* rgb */ color: rgb(22, 46, 124);
/* oklch */ color: oklch(33.8% 0.136 266.0);
Tailwind
colors: {
  custom: {
    50: '#6666a3',
    500: '#162e7c',
    950: '#000000',
  },
}
SCSS
$custom: #162e7c;
$custom-light: #6666a3;
$custom-dark: #000000;
JSON
{
  "hex": "#162e7c",
  "rgb": {
    "r": 22,
    "g": 46,
    "b": 124
  },
  "hsl": {
    "h": 225.882,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33781,
    "c": 0.1357,
    "h": 266
  },
  "luminance": 0.0358
}

Semantic roles & 50–950 ramp

primary
#162E7C
secondary
#B1963D
accent
#C33BED
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #162E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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