#15317D#15317D

#15317D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.133 H 264.7°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#15317D
RGBrgb(21, 49, 125)
HSLhsl(224, 71%, 29%)
HSVhsv(224, 83%, 49%)
CMYKcmyk(83.2%, 60.8%, 0%, 51%)
CIE-LABlab(23.12, 20.06, -45.99)
CIE-LCHlch(23.12, 50.17, 293.56°)
OKLaboklab(34.46% -0.0122 -0.1329)
OKLCHoklch(34.46% 0.133 264.7)
XYZxyz(5.1079, 3.8361, 19.8693)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15317D #7D6115
analogous
#15657D #15317D #2D157D
triadic
#15317D #7D1531 #317D15
tetradic
#15317D #7D1565 #7D6115 #157D2D
square
#15317D #7D1565 #7D6115 #157D2D
split-complementary
#15317D #7D2D15 #657D15
monochromatic
#040A1A #0C1C49 #15317D #1E46B1 #305EDC

Accessibility & contrast

On white

11.88
#15317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#15317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15317D
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15317D#FFFFFF#000000##FFFFFF
##15317D1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #15317d;
/* rgb */ color: rgb(21, 49, 125);
/* oklch */ color: oklch(34.5% 0.133 264.7);
Tailwind
colors: {
  custom: {
    50: '#6668a3',
    500: '#15317d',
    950: '#000000',
  },
}
SCSS
$custom: #15317d;
$custom-light: #6668a3;
$custom-dark: #000000;
JSON
{
  "hex": "#15317d",
  "rgb": {
    "r": 21,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 223.846,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34464,
    "c": 0.13348,
    "h": 264.7
  },
  "luminance": 0.03837
}

Semantic roles & 50–950 ramp

primary
#15317D
secondary
#B2923C
accent
#BD3AEE
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #15317D

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

Preview Lab → · Contrast checker → · Palette generator →

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