#161F7F#161F7F

#161F7F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.158 H 269.4°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#161F7F
RGBrgb(22, 31, 127)
HSLhsl(235, 70%, 29%)
HSVhsv(235, 83%, 50%)
CMYKcmyk(82.7%, 75.6%, 0%, 50.2%)
CIE-LABlab(18.72, 33.20, -54.47)
CIE-LCHlch(18.72, 63.80, 301.36°)
OKLaboklab(31.31% -0.0017 -0.1578)
OKLCHoklch(31.31% 0.158 269.4)
XYZxyz(4.6503, 2.6823, 20.3472)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F7F #7F7616
analogous
#16547F #161F7F #42167F
triadic
#161F7F #7F161F #1F7F16
tetradic
#161F7F #7F1654 #7F7616 #167F42
square
#161F7F #7F1654 #7F7616 #167F42
split-complementary
#161F7F #7F4216 #547F16
monochromatic
#05061A #0D124B #161F7F #1F2CB3 #3442DC

Accessibility & contrast

On white

13.67
#161F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#161F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F7F
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F7F#FFFFFF#000000##FFFFFF
##161F7F1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #161f7f;
/* rgb */ color: rgb(22, 31, 127);
/* oklch */ color: oklch(31.3% 0.158 269.4);
Tailwind
colors: {
  custom: {
    50: '#685ba5',
    500: '#161f7f',
    950: '#000000',
  },
}
SCSS
$custom: #161f7f;
$custom-light: #685ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#161f7f",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 234.857,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31313,
    "c": 0.15783,
    "h": 269.4
  },
  "luminance": 0.02683
}

Semantic roles & 50–950 ramp

primary
#161F7F
secondary
#B4AA3D
accent
#DE3BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #161F7F

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

Preview Lab → · Contrast checker → · Palette generator →

#161F7F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva