#16158F#16158F

#16158F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.187 H 269.4°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#16158F
RGBrgb(22, 21, 143)
HSLhsl(240, 74%, 32%)
HSVhsv(240, 85%, 56%)
CMYKcmyk(84.6%, 85.3%, 0%, 43.9%)
CIE-LABlab(18.75, 44.24, -64.49)
CIE-LCHlch(18.75, 78.20, 304.45°)
OKLaboklab(31.9% -0.002 -0.1867)
OKLCHoklch(31.9% 0.187 269.4)
XYZxyz(5.5553, 2.6894, 26.2076)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#16158F #8E8F15
analogous
#15518F #16158F #53158F
triadic
#16158F #8F1615 #158F16
tetradic
#16158F #8F1551 #8E8F15 #158F53
square
#16158F #8F1551 #8E8F15 #158F53
split-complementary
#16158F #8F5315 #518F15
monochromatic
#060524 #0E0D5A #16158F #1E1DC4 #3D3CE2

Accessibility & contrast

On white

13.65
#16158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#16158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #16158F
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##16158F#FFFFFF#000000##FFFFFF
##16158F1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00278D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #16158f;
/* rgb */ color: rgb(22, 21, 143);
/* oklch */ color: oklch(31.9% 0.187 269.4);
Tailwind
colors: {
  custom: {
    50: '#6e57b1',
    500: '#16158f',
    950: '#000000',
  },
}
SCSS
$custom: #16158f;
$custom-light: #6e57b1;
$custom-dark: #000000;
JSON
{
  "hex": "#16158f",
  "rgb": {
    "r": 22,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 240.492,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.31899,
    "c": 0.18669,
    "h": 269.4
  },
  "luminance": 0.0269
}

Semantic roles & 50–950 ramp

primary
#16158F
secondary
#C1C23E
accent
#F137EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #16158F

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

Preview Lab → · Contrast checker → · Palette generator →

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