#162F74#162F74

#162F74 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.3% C 0.123 H 265.1°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#162F74
RGBrgb(22, 47, 116)
HSLhsl(224, 68%, 27%)
HSVhsv(224, 81%, 45%)
CMYKcmyk(81%, 59.5%, 0%, 54.5%)
CIE-LABlab(21.81, 17.87, -42.39)
CIE-LCHlch(21.81, 46.01, 292.86°)
OKLaboklab(33.25% -0.0104 -0.1224)
OKLCHoklch(33.25% 0.123 265.1)
XYZxyz(4.4987, 3.4640, 16.9511)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F74 #745B16
analogous
#165E74 #162F74 #2C1674
triadic
#162F74 #74162F #2F7416
tetradic
#162F74 #74165E #745B16 #16742C
square
#162F74 #74165E #745B16 #16742C
split-complementary
#162F74 #742C16 #5E7416
monochromatic
#050A1A #0C1A41 #162F74 #2044A7 #2D5AD7

Accessibility & contrast

On white

12.40
#162F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#162F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162F74
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F74#FFFFFF#000000##FFFFFF
##162F741.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003976
Deuteranopia (green-blind)
#003073
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #162f74;
/* rgb */ color: rgb(22, 47, 116);
/* oklch */ color: oklch(33.3% 0.123 265.1);
Tailwind
colors: {
  custom: {
    50: '#64679d',
    500: '#162f74',
    950: '#000000',
  },
}
SCSS
$custom: #162f74;
$custom-light: #64679d;
$custom-dark: #000000;
JSON
{
  "hex": "#162f74",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 224.043,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.33253,
    "c": 0.12282,
    "h": 265.1
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

primary
#162F74
secondary
#AA8D3C
accent
#BD3DEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #162F74

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

Preview Lab → · Contrast checker → · Palette generator →

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