#162768#162768

#162768 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.4% C 0.116 H 267.6°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#162768
RGBrgb(22, 39, 104)
HSLhsl(228, 65%, 25%)
HSVhsv(228, 79%, 41%)
CMYKcmyk(78.8%, 62.5%, 0%, 59.2%)
CIE-LABlab(18.46, 18.68, -40.11)
CIE-LCHlch(18.46, 44.24, 294.98°)
OKLaboklab(30.41% -0.0048 -0.1158)
OKLCHoklch(30.41% 0.116 267.6)
XYZxyz(3.5542, 2.6207, 13.4125)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162768 #685716
analogous
#165068 #162768 #2E1668
triadic
#162768 #681627 #276816
tetradic
#162768 #681650 #685716 #16682E
square
#162768 #681650 #685716 #16682E
split-complementary
#162768 #682E16 #506816
monochromatic
#050919 #0B1435 #162768 #213A9B #2B4DCD

Accessibility & contrast

On white

13.78
#162768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#162768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162768
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162768#FFFFFF#000000##FFFFFF
##1627681.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316A
Deuteranopia (green-blind)
#002967
Tritanopia (blue-blind)
#003743
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #162768;
/* rgb */ color: rgb(22, 39, 104);
/* oklch */ color: oklch(30.4% 0.116 267.6);
Tailwind
colors: {
  custom: {
    50: '#616094',
    500: '#162768',
    950: '#000000',
  },
}
SCSS
$custom: #162768;
$custom-light: #616094;
$custom-dark: #000000;
JSON
{
  "hex": "#162768",
  "rgb": {
    "r": 22,
    "g": 39,
    "b": 104
  },
  "hsl": {
    "h": 227.561,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30412,
    "c": 0.11589,
    "h": 267.6
  },
  "luminance": 0.02621
}

Semantic roles & 50–950 ramp

primary
#162768
secondary
#9F8A3B
accent
#C540E8
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06050D
muted
#7A797E

Preview Lab

Preview with #162768

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

Preview Lab → · Contrast checker → · Palette generator →

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