#162A6E#162A6E

#162A6E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.6% C 0.121 H 266.7°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#162A6E
RGBrgb(22, 42, 110)
HSLhsl(226, 67%, 26%)
HSVhsv(226, 80%, 43%)
CMYKcmyk(80%, 61.8%, 0%, 56.9%)
CIE-LABlab(19.85, 18.99, -41.73)
CIE-LCHlch(19.85, 45.85, 294.47°)
OKLaboklab(31.62% -0.0069 -0.1205)
OKLCHoklch(31.62% 0.121 266.7)
XYZxyz(3.9723, 2.9518, 15.1092)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A6E #6E5A16
analogous
#16566E #162A6E #2E166E
triadic
#162A6E #6E162A #2A6E16
tetradic
#162A6E #6E1656 #6E5A16 #166E2E
square
#162A6E #6E1656 #6E5A16 #166E2E
split-complementary
#162A6E #6E2E16 #566E16
monochromatic
#050A1A #0C173B #162A6E #203DA1 #2A51D4

Accessibility & contrast

On white

13.20
#162A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#162A6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A6E
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A6E#FFFFFF#000000##FFFFFF
##162A6E1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#003B47
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #162a6e;
/* rgb */ color: rgb(22, 42, 110);
/* oklch */ color: oklch(31.6% 0.121 266.7);
Tailwind
colors: {
  custom: {
    50: '#636398',
    500: '#162a6e',
    950: '#000000',
  },
}
SCSS
$custom: #162a6e;
$custom-light: #636398;
$custom-dark: #000000;
JSON
{
  "hex": "#162a6e",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 110
  },
  "hsl": {
    "h": 226.364,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31619,
    "c": 0.12072,
    "h": 266.7
  },
  "luminance": 0.02952
}

Semantic roles & 50–950 ramp

primary
#162A6E
secondary
#A48C3C
accent
#C33EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #162A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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