#162A93#162A93

#162A93 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.172 H 267.2°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#162A93
RGBrgb(22, 42, 147)
HSLhsl(230, 74%, 33%)
HSVhsv(230, 85%, 58%)
CMYKcmyk(85%, 71.4%, 0%, 42.4%)
CIE-LABlab(23.45, 33.64, -59.20)
CIE-LCHlch(23.45, 68.09, 299.60°)
OKLaboklab(35.36% -0.0083 -0.1716)
OKLCHoklch(35.36% 0.172 267.2)
XYZxyz(6.4235, 3.9323, 28.0186)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A93 #937F16
analogous
#166893 #162A93 #401693
triadic
#162A93 #93162A #2A9316
tetradic
#162A93 #931668 #937F16 #169340
square
#162A93 #931668 #937F16 #169340
split-complementary
#162A93 #934016 #689316
monochromatic
#060C29 #0E1B5E #162A93 #1E39C8 #415BE3

Accessibility & contrast

On white

11.75
#162A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#162A93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A93
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A93#FFFFFF#000000##FFFFFF
##162A931.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E96
Deuteranopia (green-blind)
#003291
Tritanopia (blue-blind)
#00485B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #162a93;
/* rgb */ color: rgb(22, 42, 147);
/* oklch */ color: oklch(35.4% 0.172 267.2);
Tailwind
colors: {
  custom: {
    50: '#6d64b4',
    500: '#162a93',
    950: '#000000',
  },
}
SCSS
$custom: #162a93;
$custom-light: #6d64b4;
$custom-dark: #000000;
JSON
{
  "hex": "#162a93",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 147
  },
  "hsl": {
    "h": 230.4,
    "s": 73.964,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35358,
    "c": 0.17179,
    "h": 267.2
  },
  "luminance": 0.03933
}

Semantic roles & 50–950 ramp

primary
#162A93
secondary
#C3AE42
accent
#D337F1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #162A93

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

Preview Lab → · Contrast checker → · Palette generator →

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