#162257#162257

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

Color values

HEX#162257
RGBrgb(22, 34, 87)
HSLhsl(229, 60%, 21%)
HSVhsv(229, 75%, 34%)
CMYKcmyk(74.7%, 60.9%, 0%, 65.9%)
CIE-LABlab(15.50, 15.31, -33.65)
CIE-LCHlch(15.50, 36.97, 294.47°)
OKLaboklab(27.74% -0.001 -0.0969)
OKLCHoklch(27.74% 0.097 269.4)
XYZxyz(2.6226, 2.0025, 9.2633)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162257 #574B16
analogous
#164357 #162257 #2B1657
triadic
#162257 #571622 #225716
tetradic
#162257 #571643 #574B16 #16572B
square
#162257 #571643 #574B16 #16572B
split-complementary
#162257 #572B16 #435716
monochromatic
#060A18 #0A0F26 #162257 #223588 #2F48B9

Accessibility & contrast

On white

14.99
#162257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162257
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162257#FFFFFF#000000##FFFFFF
##1622571.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #162257;
/* rgb */ color: rgb(22, 34, 87);
/* oklch */ color: oklch(27.7% 0.097 269.4);
Tailwind
colors: {
  custom: {
    50: '#5d5c87',
    500: '#162257',
    950: '#000000',
  },
}
SCSS
$custom: #162257;
$custom-light: #5d5c87;
$custom-dark: #000000;
JSON
{
  "hex": "#162257",
  "rgb": {
    "r": 22,
    "g": 34,
    "b": 87
  },
  "hsl": {
    "h": 228.923,
    "s": 59.633,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27737,
    "c": 0.09691,
    "h": 269.4
  },
  "luminance": 0.02003
}

Semantic roles & 50–950 ramp

primary
#162257
secondary
#8E7F3A
accent
#C645E3
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #162257

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

Preview Lab → · Contrast checker → · Palette generator →

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