#162774#162774

#162774 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.6% C 0.133 H 267.9°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#162774
RGBrgb(22, 39, 116)
HSLhsl(229, 68%, 27%)
HSVhsv(229, 81%, 45%)
CMYKcmyk(81%, 66.4%, 0%, 54.5%)
CIE-LABlab(19.57, 23.58, -46.07)
CIE-LCHlch(19.57, 51.75, 297.11°)
OKLaboklab(31.58% -0.0049 -0.1333)
OKLCHoklch(31.58% 0.133 267.9)
XYZxyz(4.2077, 2.8821, 16.8541)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162774 #746316
analogous
#165674 #162774 #341674
triadic
#162774 #741627 #277416
tetradic
#162774 #741656 #746316 #167434
square
#162774 #741656 #746316 #167434
split-complementary
#162774 #743416 #567416
monochromatic
#05091A #0C1641 #162774 #2038A7 #2D4CD7

Accessibility & contrast

On white

13.32
#162774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#162774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162774
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162774#FFFFFF#000000##FFFFFF
##1627741.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003476
Deuteranopia (green-blind)
#002B73
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #162774;
/* rgb */ color: rgb(22, 39, 116);
/* oklch */ color: oklch(31.6% 0.133 267.9);
Tailwind
colors: {
  custom: {
    50: '#64619d',
    500: '#162774',
    950: '#000000',
  },
}
SCSS
$custom: #162774;
$custom-light: #64619d;
$custom-dark: #000000;
JSON
{
  "hex": "#162774",
  "rgb": {
    "r": 22,
    "g": 39,
    "b": 116
  },
  "hsl": {
    "h": 229.149,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31579,
    "c": 0.13335,
    "h": 267.9
  },
  "luminance": 0.02883
}

Semantic roles & 50–950 ramp

primary
#162774
secondary
#AA963C
accent
#CB3DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #162774

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

Preview Lab → · Contrast checker → · Palette generator →

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