#15177E#15177E

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

Color values

HEX#15177E
RGBrgb(21, 23, 126)
HSLhsl(239, 71%, 29%)
HSVhsv(239, 83%, 49%)
CMYKcmyk(83.3%, 81.7%, 0%, 50.6%)
CIE-LABlab(16.88, 37.52, -56.89)
CIE-LCHlch(16.88, 68.15, 303.41°)
OKLaboklab(29.96% 0.0001 -0.1647)
OKLCHoklch(29.96% 0.165 270)
XYZxyz(4.3803, 2.2781, 19.9435)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15177E #7E7C15
analogous
#154C7E #15177E #48157E
triadic
#15177E #7E1517 #177E15
tetradic
#15177E #7E154C #7E7C15 #157E48
square
#15177E #7E154C #7E7C15 #157E48
split-complementary
#15177E #7E4815 #4C7E15
monochromatic
#04051A #0C0D4A #15177E #1E21B2 #3134DD

Accessibility & contrast

On white

14.43
#15177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #15177E
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15177E#FFFFFF#000000##FFFFFF
##15177E1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #15177e;
/* rgb */ color: rgb(21, 23, 126);
/* oklch */ color: oklch(30.0% 0.165 270.0);
Tailwind
colors: {
  custom: {
    50: '#6956a5',
    500: '#15177e',
    950: '#000000',
  },
}
SCSS
$custom: #15177e;
$custom-light: #6956a5;
$custom-dark: #000000;
JSON
{
  "hex": "#15177e",
  "rgb": {
    "r": 21,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 238.857,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.29962,
    "c": 0.16474,
    "h": 270
  },
  "luminance": 0.02279
}

Semantic roles & 50–950 ramp

primary
#15177E
secondary
#B3B13C
accent
#EB3AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #15177E

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

Preview Lab → · Contrast checker → · Palette generator →

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