#15174F#15174F

#15174F is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.5% C 0.100 H 274.6°. Best body text is #FFFFFF at 16.57:1 contrast (WCAG AA passes).

Color values

HEX#15174F
RGBrgb(21, 23, 79)
HSLhsl(238, 58%, 20%)
HSVhsv(238, 73%, 31%)
CMYKcmyk(73.4%, 70.9%, 0%, 69%)
CIE-LABlab(11.53, 19.99, -34.69)
CIE-LCHlch(11.53, 40.04, 299.95°)
OKLaboklab(24.55% 0.0081 -0.1001)
OKLCHoklch(24.55% 0.1 274.6)
XYZxyz(2.0265, 1.3366, 7.5468)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15174F #4F4D15
analogous
#15344F #15174F #30154F
triadic
#15174F #4F1517 #174F15
tetradic
#15174F #4F1534 #4F4D15 #154F30
square
#15174F #4F1534 #4F4D15 #154F30
split-complementary
#15174F #4F3015 #344F15
monochromatic
#060718 #08091F #15174F #22257F #2F33B0

Accessibility & contrast

On white

16.57
#15174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#15174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15174F
16.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15174F#FFFFFF#000000##FFFFFF
##15174F1.0016.571.2716.57
#FFFFFF16.571.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#001C4E
Tritanopia (blue-blind)
#002530
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #15174f;
/* rgb */ color: rgb(21, 23, 79);
/* oklch */ color: oklch(24.5% 0.100 274.6);
Tailwind
colors: {
  custom: {
    50: '#5b5481',
    500: '#15174f',
    950: '#000000',
  },
}
SCSS
$custom: #15174f;
$custom-light: #5b5481;
$custom-dark: #000000;
JSON
{
  "hex": "#15174f",
  "rgb": {
    "r": 21,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 237.931,
    "s": 58,
    "l": 19.608
  },
  "oklch": {
    "l": 0.24549,
    "c": 0.10042,
    "h": 274.6
  },
  "luminance": 0.01337
}

Semantic roles & 50–950 ramp

primary
#15174F
secondary
#878439
accent
#DC47E1
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #15174F

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

Preview Lab → · Contrast checker → · Palette generator →

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