#162581#162581

#162581 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.154 H 268.3°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#162581
RGBrgb(22, 37, 129)
HSLhsl(232, 71%, 30%)
HSVhsv(232, 83%, 51%)
CMYKcmyk(82.9%, 71.3%, 0%, 49.4%)
CIE-LABlab(20.35, 30.07, -53.05)
CIE-LCHlch(20.35, 60.98, 299.54°)
OKLaboklab(32.55% -0.0046 -0.1537)
OKLCHoklch(32.55% 0.154 268.3)
XYZxyz(4.9535, 3.0781, 21.0977)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162581 #817216
analogous
#165B81 #162581 #3D1681
triadic
#162581 #811625 #258116
tetradic
#162581 #81165B #817216 #16813D
square
#162581 #81165B #817216 #16813D
split-complementary
#162581 #813D16 #5B8116
monochromatic
#04071A #0D164D #162581 #1F34B5 #354CDD

Accessibility & contrast

On white

13.00
#162581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#162581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162581
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162581#FFFFFF#000000##FFFFFF
##1625811.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #162581;
/* rgb */ color: rgb(22, 37, 129);
/* oklch */ color: oklch(32.6% 0.154 268.3);
Tailwind
colors: {
  custom: {
    50: '#685fa7',
    500: '#162581',
    950: '#000000',
  },
}
SCSS
$custom: #162581;
$custom-light: #685fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#162581",
  "rgb": {
    "r": 22,
    "g": 37,
    "b": 129
  },
  "hsl": {
    "h": 231.589,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32552,
    "c": 0.15376,
    "h": 268.3
  },
  "luminance": 0.03079
}

Semantic roles & 50–950 ramp

primary
#162581
secondary
#B6A53D
accent
#D43AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #162581

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

Preview Lab → · Contrast checker → · Palette generator →

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