#162A6F#162A6F

#162A6F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.7% C 0.122 H 266.8°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#162A6F
RGBrgb(22, 42, 111)
HSLhsl(227, 67%, 26%)
HSVhsv(227, 80%, 44%)
CMYKcmyk(80.2%, 62.2%, 0%, 56.5%)
CIE-LABlab(19.94, 19.40, -42.24)
CIE-LCHlch(19.94, 46.48, 294.67°)
OKLaboklab(31.71% -0.0069 -0.122)
OKLCHoklch(31.71% 0.122 266.8)
XYZxyz(4.0271, 2.9737, 15.3976)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A6F #6F5B16
analogous
#16566F #162A6F #2E166F
triadic
#162A6F #6F162A #2A6F16
tetradic
#162A6F #6F1656 #6F5B16 #166F2E
square
#162A6F #6F1656 #6F5B16 #166F2E
split-complementary
#162A6F #6F2E16 #566F16
monochromatic
#050A1A #0C173C #162A6F #203DA2 #2B51D5

Accessibility & contrast

On white

13.17
#162A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162A6F
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A6F#FFFFFF#000000##FFFFFF
##162A6F1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #162a6f;
/* rgb */ color: rgb(22, 42, 111);
/* oklch */ color: oklch(31.7% 0.122 266.8);
Tailwind
colors: {
  custom: {
    50: '#636399',
    500: '#162a6f',
    950: '#000000',
  },
}
SCSS
$custom: #162a6f;
$custom-light: #636399;
$custom-dark: #000000;
JSON
{
  "hex": "#162a6f",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 111
  },
  "hsl": {
    "h": 226.517,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31713,
    "c": 0.12219,
    "h": 266.8
  },
  "luminance": 0.02974
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #162A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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