#15177F#15177F

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

Color values

HEX#15177F
RGBrgb(21, 23, 127)
HSLhsl(239, 72%, 29%)
HSVhsv(239, 83%, 50%)
CMYKcmyk(83.5%, 81.9%, 0%, 50.2%)
CIE-LABlab(17.01, 37.87, -57.32)
CIE-LCHlch(17.01, 68.70, 303.45°)
OKLaboklab(30.09% -0.0001 -0.166)
OKLCHoklch(30.09% 0.166 270)
XYZxyz(4.4451, 2.3040, 20.2850)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15177F #7F7D15
analogous
#154C7F #15177F #48157F
triadic
#15177F #7F1517 #177F15
tetradic
#15177F #7F154C #7F7D15 #157F48
square
#15177F #7F154C #7F7D15 #157F48
split-complementary
#15177F #7F4815 #4C7F15
monochromatic
#04051A #0C0D4A #15177F #1E21B4 #3135DD

Accessibility & contrast

On white

14.37
#15177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#15177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15177F
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15177F#FFFFFF#000000##FFFFFF
##15177F1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #15177f;
/* rgb */ color: rgb(21, 23, 127);
/* oklch */ color: oklch(30.1% 0.166 270.0);
Tailwind
colors: {
  custom: {
    50: '#6956a5',
    500: '#15177f',
    950: '#000000',
  },
}
SCSS
$custom: #15177f;
$custom-light: #6956a5;
$custom-dark: #000000;
JSON
{
  "hex": "#15177f",
  "rgb": {
    "r": 21,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 238.868,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30085,
    "c": 0.16599,
    "h": 270
  },
  "luminance": 0.02305
}

Semantic roles & 50–950 ramp

primary
#15177F
secondary
#B4B23C
accent
#EB39EE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #15177F

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

Preview Lab → · Contrast checker → · Palette generator →

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