#162256#162256

#162256 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.6% C 0.095 H 269.4°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#162256
RGBrgb(22, 34, 86)
HSLhsl(229, 59%, 21%)
HSVhsv(229, 74%, 34%)
CMYKcmyk(74.4%, 60.5%, 0%, 66.3%)
CIE-LABlab(15.42, 14.90, -33.12)
CIE-LCHlch(15.42, 36.31, 294.22°)
OKLaboklab(27.65% -0.001 -0.0953)
OKLCHoklch(27.65% 0.095 269.4)
XYZxyz(2.5820, 1.9863, 9.0496)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162256 #564A16
analogous
#164256 #162256 #2A1656
triadic
#162256 #561622 #225616
tetradic
#162256 #561642 #564A16 #16562A
square
#162256 #561642 #564A16 #16562A
split-complementary
#162256 #562A16 #425616
monochromatic
#060A18 #0A0F25 #162256 #223587 #2F49B7

Accessibility & contrast

On white

15.03
#162256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#162256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162256
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162256#FFFFFF#000000##FFFFFF
##1622561.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A58
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #162256;
/* rgb */ color: rgb(22, 34, 86);
/* oklch */ color: oklch(27.6% 0.095 269.4);
Tailwind
colors: {
  custom: {
    50: '#5d5c86',
    500: '#162256',
    950: '#000000',
  },
}
SCSS
$custom: #162256;
$custom-light: #5d5c86;
$custom-dark: #000000;
JSON
{
  "hex": "#162256",
  "rgb": {
    "r": 22,
    "g": 34,
    "b": 86
  },
  "hsl": {
    "h": 228.75,
    "s": 59.259,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27646,
    "c": 0.09534,
    "h": 269.4
  },
  "luminance": 0.01987
}

Semantic roles & 50–950 ramp

primary
#162256
secondary
#8D7E3A
accent
#C545E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #162256

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

Preview Lab → · Contrast checker → · Palette generator →

#162256 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva