#15217F#15217F

#15217F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.156 H 268.7°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#15217F
RGBrgb(21, 33, 127)
HSLhsl(233, 72%, 29%)
HSVhsv(233, 83%, 50%)
CMYKcmyk(83.5%, 74%, 0%, 50.2%)
CIE-LABlab(19.14, 31.85, -53.80)
CIE-LCHlch(19.14, 62.52, 300.63°)
OKLaboklab(31.6% -0.0035 -0.1559)
OKLCHoklch(31.6% 0.156 268.7)
XYZxyz(4.6826, 2.7789, 20.3641)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15217F #7F7315
analogous
#15567F #15217F #3E157F
triadic
#15217F #7F1521 #217F15
tetradic
#15217F #7F1556 #7F7315 #157F3E
square
#15217F #7F1556 #7F7315 #157F3E
split-complementary
#15217F #7F3E15 #567F15
monochromatic
#04071A #0C134A #15217F #1E2FB4 #3145DD

Accessibility & contrast

On white

13.50
#15217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#15217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15217F
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15217F#FFFFFF#000000##FFFFFF
##15217F1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #15217f;
/* rgb */ color: rgb(21, 33, 127);
/* oklch */ color: oklch(31.6% 0.156 268.7);
Tailwind
colors: {
  custom: {
    50: '#685da5',
    500: '#15217f',
    950: '#000000',
  },
}
SCSS
$custom: #15217f;
$custom-light: #685da5;
$custom-dark: #000000;
JSON
{
  "hex": "#15217f",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 233.208,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31595,
    "c": 0.15591,
    "h": 268.7
  },
  "luminance": 0.02779
}

Semantic roles & 50–950 ramp

primary
#15217F
secondary
#B4A63C
accent
#DA39EE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #15217F

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

Preview Lab → · Contrast checker → · Palette generator →

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