#16127F#16127F

#16127F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.5% C 0.170 H 270.8°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#16127F
RGBrgb(22, 18, 127)
HSLhsl(242, 75%, 28%)
HSVhsv(242, 86%, 50%)
CMYKcmyk(82.7%, 85.8%, 0%, 50.2%)
CIE-LABlab(16.18, 40.51, -58.69)
CIE-LCHlch(16.18, 71.31, 304.61°)
OKLaboklab(29.52% 0.0022 -0.1698)
OKLCHoklch(29.52% 0.17 270.8)
XYZxyz(4.3767, 2.1350, 20.2560)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#16127F #7B7F12
analogous
#12447F #16127F #4C127F
triadic
#16127F #7F1612 #127F16
tetradic
#16127F #7F1244 #7B7F12 #127F4C
square
#16127F #7F1244 #7B7F12 #127F4C
split-complementary
#16127F #7F4C12 #447F12
monochromatic
#05041B #0D0A49 #16127F #1F1AB5 #312BE1

Accessibility & contrast

On white

14.72
#16127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#16127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #16127F
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##16127F#FFFFFF#000000##FFFFFF
##16127F1.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D82
Deuteranopia (green-blind)
#00227D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #16127f;
/* rgb */ color: rgb(22, 18, 127);
/* oklch */ color: oklch(29.5% 0.170 270.8);
Tailwind
colors: {
  custom: {
    50: '#6a54a5',
    500: '#16127f',
    950: '#000000',
  },
}
SCSS
$custom: #16127f;
$custom-light: #6a54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#16127f",
  "rgb": {
    "r": 22,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 242.202,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29524,
    "c": 0.16986,
    "h": 270.8
  },
  "luminance": 0.02135
}

Semantic roles & 50–950 ramp

primary
#16127F
secondary
#B0B538
accent
#F236EB
background
#F7F4FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #16127F

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

Preview Lab → · Contrast checker → · Palette generator →

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