#15315B#15315B

#15315B is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.6% C 0.083 H 258.4°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#15315B
RGBrgb(21, 49, 91)
HSLhsl(216, 63%, 22%)
HSVhsv(216, 77%, 36%)
CMYKcmyk(76.9%, 46.2%, 0%, 64.3%)
CIE-LABlab(20.48, 5.78, -28.29)
CIE-LCHlch(20.48, 28.88, 281.55°)
OKLaboklab(31.62% -0.0165 -0.0809)
OKLCHoklch(31.62% 0.083 258.4)
XYZxyz(3.2952, 3.1110, 10.3223)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15315B #5B3F15
analogous
#15545B #15315B #1C155B
triadic
#15315B #5B1531 #315B15
tetradic
#15315B #5B1554 #5B3F15 #155B1C
square
#15315B #5B1554 #5B3F15 #155B1C
split-complementary
#15315B #5B1C15 #545B15
monochromatic
#060D19 #0A1629 #15315B #204C8D #2C67BE

Accessibility & contrast

On white

12.95
#15315B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#15315B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15315B
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15315B#FFFFFF#000000##FFFFFF
##15315B1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D355D
Deuteranopia (green-blind)
#102E5A
Tritanopia (blue-blind)
#003B41
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #15315b;
/* rgb */ color: rgb(21, 49, 91);
/* oklch */ color: oklch(31.6% 0.083 258.4);
Tailwind
colors: {
  custom: {
    50: '#5d688a',
    500: '#15315b',
    950: '#000000',
  },
}
SCSS
$custom: #15315b;
$custom-light: #5d688a;
$custom-dark: #000000;
JSON
{
  "hex": "#15315b",
  "rgb": {
    "r": 21,
    "g": 49,
    "b": 91
  },
  "hsl": {
    "h": 216,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.3162,
    "c": 0.08255,
    "h": 258.4
  },
  "luminance": 0.03111
}

Semantic roles & 50–950 ramp

primary
#15315B
secondary
#926F39
accent
#A442E6
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060B
muted
#797A7C

Preview Lab

Preview with #15315B

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

Preview Lab → · Contrast checker → · Palette generator →

#15315B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva