#15167F#15167F

#15167F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.167 H 270.0°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#15167F
RGBrgb(21, 22, 127)
HSLhsl(239, 72%, 29%)
HSVhsv(239, 83%, 50%)
CMYKcmyk(83.5%, 82.7%, 0%, 50.2%)
CIE-LABlab(16.82, 38.41, -57.63)
CIE-LCHlch(16.82, 69.26, 303.69°)
OKLaboklab(29.95% 0.0001 -0.1669)
OKLCHoklch(29.95% 0.167 270)
XYZxyz(4.4256, 2.2650, 20.2785)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15167F #7F7E15
analogous
#154B7F #15167F #49157F
triadic
#15167F #7F1516 #167F15
tetradic
#15167F #7F154B #7F7E15 #157F49
square
#15167F #7F154B #7F7E15 #157F49
split-complementary
#15167F #7F4915 #4B7F15
monochromatic
#04051A #0C0D4A #15167F #1E1FB4 #3133DD

Accessibility & contrast

On white

14.45
#15167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#15167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15167F
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15167F#FFFFFF#000000##FFFFFF
##15167F1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #15167f;
/* rgb */ color: rgb(21, 22, 127);
/* oklch */ color: oklch(30.0% 0.167 270.0);
Tailwind
colors: {
  custom: {
    50: '#6956a5',
    500: '#15167f',
    950: '#000000',
  },
}
SCSS
$custom: #15167f;
$custom-light: #6956a5;
$custom-dark: #000000;
JSON
{
  "hex": "#15167f",
  "rgb": {
    "r": 21,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 239.434,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.29954,
    "c": 0.16687,
    "h": 270
  },
  "luminance": 0.02266
}

Semantic roles & 50–950 ramp

primary
#15167F
secondary
#B4B33C
accent
#ED39EE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #15167F

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

Preview Lab → · Contrast checker → · Palette generator →

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