#162F6F#162F6F

#162F6F is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.8% C 0.115 H 264.6°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#162F6F
RGBrgb(22, 47, 111)
HSLhsl(223, 67%, 26%)
HSVhsv(223, 80%, 44%)
CMYKcmyk(80.2%, 57.7%, 0%, 56.5%)
CIE-LABlab(21.40, 15.79, -39.86)
CIE-LCHlch(21.40, 42.88, 291.61°)
OKLaboklab(32.81% -0.0108 -0.1149)
OKLCHoklch(32.81% 0.115 264.6)
XYZxyz(4.2156, 3.3508, 15.4604)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F6F #6F5616
analogous
#165B6F #162F6F #29166F
triadic
#162F6F #6F162F #2F6F16
tetradic
#162F6F #6F165B #6F5616 #166F29
square
#162F6F #6F165B #6F5616 #166F29
split-complementary
#162F6F #6F2916 #5B6F16
monochromatic
#050B1A #0C193C #162F6F #2045A2 #2B5AD5

Accessibility & contrast

On white

12.57
#162F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#162F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162F6F
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F6F#FFFFFF#000000##FFFFFF
##162F6F1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003871
Deuteranopia (green-blind)
#002F6E
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #162f6f;
/* rgb */ color: rgb(22, 47, 111);
/* oklch */ color: oklch(32.8% 0.115 264.6);
Tailwind
colors: {
  custom: {
    50: '#626799',
    500: '#162f6f',
    950: '#000000',
  },
}
SCSS
$custom: #162f6f;
$custom-light: #626799;
$custom-dark: #000000;
JSON
{
  "hex": "#162f6f",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 111
  },
  "hsl": {
    "h": 223.146,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32808,
    "c": 0.11544,
    "h": 264.6
  },
  "luminance": 0.03351
}

Semantic roles & 50–950 ramp

primary
#162F6F
secondary
#A5873C
accent
#BA3EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #162F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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