#15287F#15287F

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

Color values

HEX#15287F
RGBrgb(21, 40, 127)
HSLhsl(229, 72%, 29%)
HSVhsv(229, 83%, 50%)
CMYKcmyk(83.5%, 68.5%, 0%, 50.2%)
CIE-LABlab(20.86, 27.17, -50.96)
CIE-LCHlch(20.86, 57.75, 298.07°)
OKLaboklab(32.85% -0.0068 -0.1476)
OKLCHoklch(32.85% 0.148 267.3)
XYZxyz(4.8975, 3.2087, 20.4358)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15287F #7F6C15
analogous
#155D7F #15287F #37157F
triadic
#15287F #7F1528 #287F15
tetradic
#15287F #7F155D #7F6C15 #157F37
square
#15287F #7F155D #7F6C15 #157F37
split-complementary
#15287F #7F3715 #5D7F15
monochromatic
#04081A #0C174A #15287F #1E39B4 #3150DD

Accessibility & contrast

On white

12.79
#15287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#15287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15287F
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15287F#FFFFFF#000000##FFFFFF
##15287F1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #15287f;
/* rgb */ color: rgb(21, 40, 127);
/* oklch */ color: oklch(32.8% 0.148 267.3);
Tailwind
colors: {
  custom: {
    50: '#6762a5',
    500: '#15287f',
    950: '#000000',
  },
}
SCSS
$custom: #15287f;
$custom-light: #6762a5;
$custom-dark: #000000;
JSON
{
  "hex": "#15287f",
  "rgb": {
    "r": 21,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 229.245,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32847,
    "c": 0.14773,
    "h": 267.3
  },
  "luminance": 0.03209
}

Semantic roles & 50–950 ramp

primary
#15287F
secondary
#B49E3C
accent
#CE39EE
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #15287F

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

Preview Lab → · Contrast checker → · Palette generator →

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