#15128F#15128F

#15128F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.189 H 269.2°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#15128F
RGBrgb(21, 18, 143)
HSLhsl(241, 78%, 32%)
HSVhsv(241, 87%, 56%)
CMYKcmyk(85.3%, 87.4%, 0%, 43.9%)
CIE-LABlab(18.25, 45.54, -65.32)
CIE-LCHlch(18.25, 79.63, 304.88°)
OKLaboklab(31.54% -0.0027 -0.189)
OKLCHoklch(31.54% 0.189 269.2)
XYZxyz(5.4818, 2.5746, 26.1893)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15128F #8C8F12
analogous
#124E8F #15128F #54128F
triadic
#15128F #8F1512 #128F15
tetradic
#15128F #8F124E #8C8F12 #128F54
square
#15128F #8F124E #8C8F12 #128F54
split-complementary
#15128F #8F5412 #4E8F12
monochromatic
#050422 #0D0B59 #15128F #1D19C5 #3A36E6

Accessibility & contrast

On white

13.86
#15128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#15128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15128F
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15128F#FFFFFF#000000##FFFFFF
##15128F1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003392
Deuteranopia (green-blind)
#00268D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #15128f;
/* rgb */ color: rgb(21, 18, 143);
/* oklch */ color: oklch(31.5% 0.189 269.2);
Tailwind
colors: {
  custom: {
    50: '#6e55b1',
    500: '#15128f',
    950: '#000000',
  },
}
SCSS
$custom: #15128f;
$custom-light: #6e55b1;
$custom-dark: #000000;
JSON
{
  "hex": "#15128f",
  "rgb": {
    "r": 21,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 241.44,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31539,
    "c": 0.18906,
    "h": 269.2
  },
  "luminance": 0.02575
}

Semantic roles & 50–950 ramp

primary
#15128F
secondary
#C0C33A
accent
#F434F0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #15128F

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

Preview Lab → · Contrast checker → · Palette generator →

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