#15167E#15167E

#15167E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.166 H 270.1°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#15167E
RGBrgb(21, 22, 126)
HSLhsl(239, 71%, 29%)
HSVhsv(239, 83%, 49%)
CMYKcmyk(83.3%, 82.5%, 0%, 50.6%)
CIE-LABlab(16.70, 38.07, -57.20)
CIE-LCHlch(16.70, 68.71, 303.65°)
OKLaboklab(29.83% 0.0004 -0.1656)
OKLCHoklch(29.83% 0.166 270.1)
XYZxyz(4.3608, 2.2391, 19.9370)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15167E #7E7D15
analogous
#154B7E #15167E #49157E
triadic
#15167E #7E1516 #167E15
tetradic
#15167E #7E154B #7E7D15 #157E49
square
#15167E #7E154B #7E7D15 #157E49
split-complementary
#15167E #7E4915 #4B7E15
monochromatic
#04051A #0C0D4A #15167E #1E1FB2 #3132DD

Accessibility & contrast

On white

14.50
#15167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #15167E
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15167E#FFFFFF#000000##FFFFFF
##15167E1.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #15167e;
/* rgb */ color: rgb(21, 22, 126);
/* oklch */ color: oklch(29.8% 0.166 270.1);
Tailwind
colors: {
  custom: {
    50: '#6956a5',
    500: '#15167e',
    950: '#000000',
  },
}
SCSS
$custom: #15167e;
$custom-light: #6956a5;
$custom-dark: #000000;
JSON
{
  "hex": "#15167e",
  "rgb": {
    "r": 21,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 239.429,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.2983,
    "c": 0.16563,
    "h": 270.1
  },
  "luminance": 0.0224
}

Semantic roles & 50–950 ramp

primary
#15167E
secondary
#B3B23C
accent
#EC3AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #15167E

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

Preview Lab → · Contrast checker → · Palette generator →

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