#15315A#15315A

#15315A is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.5% C 0.081 H 258.1°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#15315A
RGBrgb(21, 49, 90)
HSLhsl(216, 62%, 22%)
HSVhsv(216, 77%, 35%)
CMYKcmyk(76.7%, 45.6%, 0%, 64.7%)
CIE-LABlab(20.42, 5.36, -27.74)
CIE-LCHlch(20.42, 28.25, 280.94°)
OKLaboklab(31.55% -0.0168 -0.0792)
OKLCHoklch(31.55% 0.081 258.1)
XYZxyz(3.2524, 3.0939, 10.0967)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15315A #5A3E15
analogous
#15545A #15315A #1C155A
triadic
#15315A #5A1531 #315A15
tetradic
#15315A #5A1554 #5A3E15 #155A1C
square
#15315A #5A1554 #5A3E15 #155A1C
split-complementary
#15315A #5A1C15 #545A15
monochromatic
#060E19 #091628 #15315A #214C8C #2C67BD

Accessibility & contrast

On white

12.97
#15315A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #15315A
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15315A#FFFFFF#000000##FFFFFF
##15315A1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D355C
Deuteranopia (green-blind)
#122E59
Tritanopia (blue-blind)
#003B41
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #15315a;
/* rgb */ color: rgb(21, 49, 90);
/* oklch */ color: oklch(31.5% 0.081 258.1);
Tailwind
colors: {
  custom: {
    50: '#5c6889',
    500: '#15315a',
    950: '#000000',
  },
}
SCSS
$custom: #15315a;
$custom-light: #5c6889;
$custom-dark: #000000;
JSON
{
  "hex": "#15315a",
  "rgb": {
    "r": 21,
    "g": 49,
    "b": 90
  },
  "hsl": {
    "h": 215.652,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.31546,
    "c": 0.081,
    "h": 258.1
  },
  "luminance": 0.03094
}

Semantic roles & 50–950 ramp

primary
#15315A
secondary
#926E39
accent
#A343E5
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060B
muted
#797A7C

Preview Lab

Preview with #15315A

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

Preview Lab → · Contrast checker → · Palette generator →

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