#15177D#15177D

#15177D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.163 H 270.1°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#15177D
RGBrgb(21, 23, 125)
HSLhsl(239, 71%, 29%)
HSVhsv(239, 83%, 49%)
CMYKcmyk(83.2%, 81.6%, 0%, 51%)
CIE-LABlab(16.76, 37.18, -56.45)
CIE-LCHlch(16.76, 67.60, 303.37°)
OKLaboklab(29.84% 0.0003 -0.1635)
OKLCHoklch(29.84% 0.163 270.1)
XYZxyz(4.3161, 2.2524, 19.6053)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15177D #7D7B15
analogous
#154B7D #15177D #47157D
triadic
#15177D #7D1517 #177D15
tetradic
#15177D #7D154B #7D7B15 #157D47
square
#15177D #7D154B #7D7B15 #157D47
split-complementary
#15177D #7D4715 #4B7D15
monochromatic
#04051A #0C0D49 #15177D #1E21B1 #3033DC

Accessibility & contrast

On white

14.48
#15177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#15177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15177D
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15177D#FFFFFF#000000##FFFFFF
##15177D1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #15177d;
/* rgb */ color: rgb(21, 23, 125);
/* oklch */ color: oklch(29.8% 0.163 270.1);
Tailwind
colors: {
  custom: {
    50: '#6856a4',
    500: '#15177d',
    950: '#000000',
  },
}
SCSS
$custom: #15177d;
$custom-light: #6856a4;
$custom-dark: #000000;
JSON
{
  "hex": "#15177d",
  "rgb": {
    "r": 21,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 238.846,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.29839,
    "c": 0.16349,
    "h": 270.1
  },
  "luminance": 0.02253
}

Semantic roles & 50–950 ramp

primary
#15177D
secondary
#B2B03C
accent
#EB3AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #15177D

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

Preview Lab → · Contrast checker → · Palette generator →

#15177D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva