#162161#162161

#162161 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.5% C 0.114 H 270.0°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#162161
RGBrgb(22, 33, 97)
HSLhsl(231, 63%, 23%)
HSVhsv(231, 77%, 38%)
CMYKcmyk(77.3%, 66%, 0%, 62%)
CIE-LABlab(16.11, 20.16, -39.33)
CIE-LCHlch(16.11, 44.20, 297.14°)
OKLaboklab(28.47% 0 -0.1136)
OKLCHoklch(28.47% 0.114 270)
XYZxyz(3.0317, 2.1210, 11.5566)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162161 #615616
analogous
#164661 #162161 #301661
triadic
#162161 #611621 #216116
tetradic
#162161 #611646 #615616 #166130
square
#162161 #611646 #615616 #166130
split-complementary
#162161 #613016 #466116
monochromatic
#060819 #0B102F #162161 #213293 #2D43C5

Accessibility & contrast

On white

14.75
#162161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#162161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162161
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162161#FFFFFF#000000##FFFFFF
##1621611.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C63
Deuteranopia (green-blind)
#002560
Tritanopia (blue-blind)
#00313D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #162161;
/* rgb */ color: rgb(22, 33, 97);
/* oklch */ color: oklch(28.5% 0.114 270.0);
Tailwind
colors: {
  custom: {
    50: '#605c8f',
    500: '#162161',
    950: '#000000',
  },
}
SCSS
$custom: #162161;
$custom-light: #605c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#162161",
  "rgb": {
    "r": 22,
    "g": 33,
    "b": 97
  },
  "hsl": {
    "h": 231.2,
    "s": 63.025,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28472,
    "c": 0.11359,
    "h": 270
  },
  "luminance": 0.02121
}

Semantic roles & 50–950 ramp

primary
#162161
secondary
#988A3B
accent
#CE42E6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #162161

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

Preview Lab → · Contrast checker → · Palette generator →

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