#16187F#16187F

#16187F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.165 H 270.2°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#16187F
RGBrgb(22, 24, 127)
HSLhsl(239, 70%, 29%)
HSVhsv(239, 83%, 50%)
CMYKcmyk(82.7%, 81.1%, 0%, 50.2%)
CIE-LABlab(17.25, 37.38, -56.91)
CIE-LCHlch(17.25, 68.09, 303.30°)
OKLaboklab(30.27% 0.0007 -0.1648)
OKLCHoklch(30.27% 0.165 270.2)
XYZxyz(4.4870, 2.3556, 20.2928)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#16187F #7F7D16
analogous
#164D7F #16187F #49167F
triadic
#16187F #7F1618 #187F16
tetradic
#16187F #7F164D #7F7D16 #167F49
square
#16187F #7F164D #7F7D16 #167F49
split-complementary
#16187F #7F4916 #4D7F16
monochromatic
#05051A #0D0E4B #16187F #1F22B3 #3437DC

Accessibility & contrast

On white

14.27
#16187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#16187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #16187F
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##16187F#FFFFFF#000000##FFFFFF
##16187F1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #16187f;
/* rgb */ color: rgb(22, 24, 127);
/* oklch */ color: oklch(30.3% 0.165 270.2);
Tailwind
colors: {
  custom: {
    50: '#6957a5',
    500: '#16187f',
    950: '#000000',
  },
}
SCSS
$custom: #16187f;
$custom-light: #6957a5;
$custom-dark: #000000;
JSON
{
  "hex": "#16187f",
  "rgb": {
    "r": 22,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 238.857,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30271,
    "c": 0.16481,
    "h": 270.2
  },
  "luminance": 0.02356
}

Semantic roles & 50–950 ramp

primary
#16187F
secondary
#B4B23D
accent
#EA3BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #16187F

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

Preview Lab → · Contrast checker → · Palette generator →

#16187F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva