#162874#162874

#162874 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.132 H 267.6°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#162874
RGBrgb(22, 40, 116)
HSLhsl(229, 68%, 27%)
HSVhsv(229, 81%, 45%)
CMYKcmyk(81%, 65.5%, 0%, 54.5%)
CIE-LABlab(19.84, 22.87, -45.62)
CIE-LCHlch(19.84, 51.03, 296.63°)
OKLaboklab(31.78% -0.0055 -0.132)
OKLCHoklch(31.78% 0.132 267.6)
XYZxyz(4.2410, 2.9486, 16.8652)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162874 #746216
analogous
#165774 #162874 #331674
triadic
#162874 #741628 #287416
tetradic
#162874 #741657 #746216 #167433
square
#162874 #741657 #746216 #167433
split-complementary
#162874 #743316 #577416
monochromatic
#05091A #0C1641 #162874 #203AA7 #2D4ED7

Accessibility & contrast

On white

13.21
#162874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#162874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162874
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162874#FFFFFF#000000##FFFFFF
##1628741.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003476
Deuteranopia (green-blind)
#002C73
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #162874;
/* rgb */ color: rgb(22, 40, 116);
/* oklch */ color: oklch(31.8% 0.132 267.6);
Tailwind
colors: {
  custom: {
    50: '#64619d',
    500: '#162874',
    950: '#000000',
  },
}
SCSS
$custom: #162874;
$custom-light: #64619d;
$custom-dark: #000000;
JSON
{
  "hex": "#162874",
  "rgb": {
    "r": 22,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 228.511,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31779,
    "c": 0.13206,
    "h": 267.6
  },
  "luminance": 0.02949
}

Semantic roles & 50–950 ramp

primary
#162874
secondary
#AA953C
accent
#CA3DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #162874

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

Preview Lab → · Contrast checker → · Palette generator →

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