#15317F#15317F

#15317F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.6% C 0.136 H 264.9°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#15317F
RGBrgb(21, 49, 127)
HSLhsl(224, 72%, 29%)
HSVhsv(224, 83%, 50%)
CMYKcmyk(83.5%, 61.4%, 0%, 50.2%)
CIE-LABlab(23.30, 20.88, -46.97)
CIE-LCHlch(23.30, 51.40, 293.97°)
OKLaboklab(34.65% -0.0121 -0.1358)
OKLCHoklch(34.65% 0.136 264.9)
XYZxyz(5.2370, 3.8877, 20.5490)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15317F #7F6315
analogous
#15667F #15317F #2E157F
triadic
#15317F #7F1531 #317F15
tetradic
#15317F #7F1566 #7F6315 #157F2E
square
#15317F #7F1566 #7F6315 #157F2E
split-complementary
#15317F #7F2E15 #667F15
monochromatic
#040A1A #0C1D4A #15317F #1E45B4 #315FDD

Accessibility & contrast

On white

11.81
#15317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#15317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15317F
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15317F#FFFFFF#000000##FFFFFF
##15317F1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00337E
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #15317f;
/* rgb */ color: rgb(21, 49, 127);
/* oklch */ color: oklch(34.6% 0.136 264.9);
Tailwind
colors: {
  custom: {
    50: '#6668a5',
    500: '#15317f',
    950: '#000000',
  },
}
SCSS
$custom: #15317f;
$custom-light: #6668a5;
$custom-dark: #000000;
JSON
{
  "hex": "#15317f",
  "rgb": {
    "r": 21,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 224.151,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3465,
    "c": 0.13633,
    "h": 264.9
  },
  "luminance": 0.03888
}

Semantic roles & 50–950 ramp

primary
#15317F
secondary
#B4943C
accent
#BF39EE
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #15317F

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

Preview Lab → · Contrast checker → · Palette generator →

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