#15287D#15287D

#15287D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.6% C 0.145 H 267.3°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#15287D
RGBrgb(21, 40, 125)
HSLhsl(229, 71%, 29%)
HSVhsv(229, 83%, 49%)
CMYKcmyk(83.2%, 68%, 0%, 51%)
CIE-LABlab(20.66, 26.38, -50.01)
CIE-LCHlch(20.66, 56.55, 297.81°)
OKLaboklab(32.64% -0.0067 -0.1448)
OKLCHoklch(32.64% 0.145 267.3)
XYZxyz(4.7684, 3.1571, 19.7561)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15287D #7D6A15
analogous
#155C7D #15287D #36157D
triadic
#15287D #7D1528 #287D15
tetradic
#15287D #7D155C #7D6A15 #157D36
square
#15287D #7D155C #7D6A15 #157D36
split-complementary
#15287D #7D3615 #5C7D15
monochromatic
#04081A #0C1749 #15287D #1E39B1 #3050DC

Accessibility & contrast

On white

12.87
#15287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#15287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15287D
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15287D#FFFFFF#000000##FFFFFF
##15287D1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #15287d;
/* rgb */ color: rgb(21, 40, 125);
/* oklch */ color: oklch(32.6% 0.145 267.3);
Tailwind
colors: {
  custom: {
    50: '#6761a4',
    500: '#15287d',
    950: '#000000',
  },
}
SCSS
$custom: #15287d;
$custom-light: #6761a4;
$custom-dark: #000000;
JSON
{
  "hex": "#15287d",
  "rgb": {
    "r": 21,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 229.038,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32641,
    "c": 0.14498,
    "h": 267.3
  },
  "luminance": 0.03158
}

Semantic roles & 50–950 ramp

primary
#15287D
secondary
#B29D3C
accent
#CD3AEE
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #15287D

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

Preview Lab → · Contrast checker → · Palette generator →

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