#15176B#15176B

#15176B is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.7% C 0.140 H 271.6°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#15176B
RGBrgb(21, 23, 107)
HSLhsl(239, 67%, 25%)
HSVhsv(239, 80%, 42%)
CMYKcmyk(80.4%, 78.5%, 0%, 58%)
CIE-LABlab(14.59, 30.75, -48.42)
CIE-LCHlch(14.59, 57.36, 302.42°)
OKLaboklab(27.67% 0.0039 -0.1402)
OKLCHoklch(27.67% 0.14 271.6)
XYZxyz(3.2686, 1.8334, 14.0887)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15176B #6B6915
analogous
#15426B #15176B #3E156B
triadic
#15176B #6B1517 #176B15
tetradic
#15176B #6B1542 #6B6915 #156B3E
square
#15176B #6B1542 #6B6915 #156B3E
split-complementary
#15176B #6B3E15 #426B15
monochromatic
#05051A #0B0C38 #15176B #1F229E #292DD1

Accessibility & contrast

On white

15.36
#15176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#15176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15176B
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15176B#FFFFFF#000000##FFFFFF
##15176B1.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296D
Deuteranopia (green-blind)
#00216A
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #15176b;
/* rgb */ color: rgb(21, 23, 107);
/* oklch */ color: oklch(27.7% 0.140 271.6);
Tailwind
colors: {
  custom: {
    50: '#635596',
    500: '#15176b',
    950: '#000000',
  },
}
SCSS
$custom: #15176b;
$custom-light: #635596;
$custom-dark: #000000;
JSON
{
  "hex": "#15176b",
  "rgb": {
    "r": 21,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 238.605,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.27671,
    "c": 0.14023,
    "h": 271.6
  },
  "luminance": 0.01834
}

Semantic roles & 50–950 ramp

primary
#15176B
secondary
#A29F3A
accent
#E63EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #15176B

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

Preview Lab → · Contrast checker → · Palette generator →

#15176B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva