#15317E#15317E

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

Color values

HEX#15317E
RGBrgb(21, 49, 126)
HSLhsl(224, 71%, 29%)
HSVhsv(224, 83%, 49%)
CMYKcmyk(83.3%, 61.1%, 0%, 50.6%)
CIE-LABlab(23.21, 20.47, -46.48)
CIE-LCHlch(23.21, 50.79, 293.77°)
OKLaboklab(34.56% -0.0122 -0.1344)
OKLCHoklch(34.56% 0.135 264.8)
XYZxyz(5.1721, 3.8618, 20.2074)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15317E #7E6215
analogous
#15667E #15317E #2E157E
triadic
#15317E #7E1531 #317E15
tetradic
#15317E #7E1566 #7E6215 #157E2E
square
#15317E #7E1566 #7E6215 #157E2E
split-complementary
#15317E #7E2E15 #667E15
monochromatic
#040A1A #0C1D4A #15317E #1E45B2 #315FDD

Accessibility & contrast

On white

11.85
#15317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #15317E
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15317E#FFFFFF#000000##FFFFFF
##15317E1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #15317e;
/* rgb */ color: rgb(21, 49, 126);
/* oklch */ color: oklch(34.6% 0.135 264.8);
Tailwind
colors: {
  custom: {
    50: '#6668a4',
    500: '#15317e',
    950: '#000000',
  },
}
SCSS
$custom: #15317e;
$custom-light: #6668a4;
$custom-dark: #000000;
JSON
{
  "hex": "#15317e",
  "rgb": {
    "r": 21,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 224,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34557,
    "c": 0.13491,
    "h": 264.8
  },
  "luminance": 0.03862
}

Semantic roles & 50–950 ramp

primary
#15317E
secondary
#B3933C
accent
#BE3AEE
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #15317E

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

Preview Lab → · Contrast checker → · Palette generator →

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