#15318D#15318D

#15318D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.156 H 265.6°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#15318D
RGBrgb(21, 49, 141)
HSLhsl(226, 74%, 32%)
HSVhsv(226, 85%, 55%)
CMYKcmyk(85.1%, 65.2%, 0%, 44.7%)
CIE-LABlab(24.57, 26.55, -53.64)
CIE-LCHlch(24.57, 59.85, 296.33°)
OKLaboklab(35.99% -0.012 -0.1553)
OKLCHoklch(35.99% 0.156 265.6)
XYZxyz(6.2136, 4.2784, 25.6925)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15318D #8D7115
analogous
#156D8D #15318D #35158D
triadic
#15318D #8D1531 #318D15
tetradic
#15318D #8D156D #8D7115 #158D35
square
#15318D #8D156D #8D7115 #158D35
split-complementary
#15318D #8D3515 #6D8D15
monochromatic
#050C22 #0D1E58 #15318D #1D44C2 #3B62E2

Accessibility & contrast

On white

11.32
#15318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#15318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15318D
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15318D#FFFFFF#000000##FFFFFF
##15318D1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #15318d;
/* rgb */ color: rgb(21, 49, 141);
/* oklch */ color: oklch(36.0% 0.156 265.6);
Tailwind
colors: {
  custom: {
    50: '#6a68af',
    500: '#15318d',
    950: '#000000',
  },
}
SCSS
$custom: #15318d;
$custom-light: #6a68af;
$custom-dark: #000000;
JSON
{
  "hex": "#15318d",
  "rgb": {
    "r": 21,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 226,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3599,
    "c": 0.15579,
    "h": 265.6
  },
  "luminance": 0.04279
}

Semantic roles & 50–950 ramp

primary
#15318D
secondary
#C1A23D
accent
#C537F1
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #15318D

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

Preview Lab → · Contrast checker → · Palette generator →

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