#15315E#15315E

#15315E is a dark, moderate blue. Relative luminance 0.032; OKLCH L 31.8% C 0.087 H 259.5°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#15315E
RGBrgb(21, 49, 94)
HSLhsl(217, 63%, 23%)
HSVhsv(217, 78%, 37%)
CMYKcmyk(77.7%, 47.9%, 0%, 63.1%)
CIE-LABlab(20.69, 7.05, -29.94)
CIE-LCHlch(20.69, 30.76, 283.24°)
OKLaboklab(31.84% -0.0159 -0.0857)
OKLCHoklch(31.84% 0.087 259.5)
XYZxyz(3.4272, 3.1638, 11.0176)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15315E #5E4215
analogous
#15565E #15315E #1D155E
triadic
#15315E #5E1531 #315E15
tetradic
#15315E #5E1556 #5E4215 #155E1D
square
#15315E #5E1556 #5E4215 #155E1D
split-complementary
#15315E #5E1D15 #565E15
monochromatic
#060D19 #0A172C #15315E #204B90 #2B65C2

Accessibility & contrast

On white

12.86
#15315E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #15315E
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15315E#FFFFFF#000000##FFFFFF
##15315E1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3560
Deuteranopia (green-blind)
#0C2F5D
Tritanopia (blue-blind)
#003C42
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #15315e;
/* rgb */ color: rgb(21, 49, 94);
/* oklch */ color: oklch(31.8% 0.087 259.5);
Tailwind
colors: {
  custom: {
    50: '#5d688c',
    500: '#15315e',
    950: '#000000',
  },
}
SCSS
$custom: #15315e;
$custom-light: #5d688c;
$custom-dark: #000000;
JSON
{
  "hex": "#15315e",
  "rgb": {
    "r": 21,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 216.986,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.31844,
    "c": 0.08719,
    "h": 259.5
  },
  "luminance": 0.03164
}

Semantic roles & 50–950 ramp

primary
#15315E
secondary
#957239
accent
#A741E7
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #15315E

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

Preview Lab → · Contrast checker → · Palette generator →

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