#15315C#15315C

#15315C is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.7% C 0.084 H 258.8°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#15315C
RGBrgb(21, 49, 92)
HSLhsl(216, 63%, 22%)
HSVhsv(216, 77%, 36%)
CMYKcmyk(77.2%, 46.7%, 0%, 63.9%)
CIE-LABlab(20.55, 6.20, -28.84)
CIE-LCHlch(20.55, 29.50, 282.13°)
OKLaboklab(31.69% -0.0163 -0.0825)
OKLCHoklch(31.69% 0.084 258.8)
XYZxyz(3.3386, 3.1284, 10.5510)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15315C #5C4015
analogous
#15555C #15315C #1D155C
triadic
#15315C #5C1531 #315C15
tetradic
#15315C #5C1555 #5C4015 #155C1D
square
#15315C #5C1555 #5C4015 #155C1D
split-complementary
#15315C #5C1D15 #555C15
monochromatic
#060D19 #0A162A #15315C #204C8E #2C66C0

Accessibility & contrast

On white

12.92
#15315C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#15315C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15315C
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15315C#FFFFFF#000000##FFFFFF
##15315C1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C355E
Deuteranopia (green-blind)
#0F2E5B
Tritanopia (blue-blind)
#003B42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #15315c;
/* rgb */ color: rgb(21, 49, 92);
/* oklch */ color: oklch(31.7% 0.084 258.8);
Tailwind
colors: {
  custom: {
    50: '#5d688a',
    500: '#15315c',
    950: '#000000',
  },
}
SCSS
$custom: #15315c;
$custom-light: #5d688a;
$custom-dark: #000000;
JSON
{
  "hex": "#15315c",
  "rgb": {
    "r": 21,
    "g": 49,
    "b": 92
  },
  "hsl": {
    "h": 216.338,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31694,
    "c": 0.08409,
    "h": 258.8
  },
  "luminance": 0.03129
}

Semantic roles & 50–950 ramp

primary
#15315C
secondary
#937039
accent
#A542E6
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #15315C

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

Preview Lab → · Contrast checker → · Palette generator →

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