#5148BD#5148BD

#5148BD is a mid, vivid blue. Relative luminance 0.101; OKLCH L 48.0% C 0.177 H 280.8°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#5148BD
RGBrgb(81, 72, 189)
HSLhsl(245, 47%, 51%)
HSVhsv(245, 62%, 74%)
CMYKcmyk(57.1%, 61.9%, 0%, 25.9%)
CIE-LABlab(37.94, 37.04, -60.56)
CIE-LCHlch(37.94, 70.99, 301.45°)
OKLaboklab(48.04% 0.0333 -0.174)
OKLCHoklch(48.04% 0.177 280.8)
XYZxyz(14.8931, 10.0572, 49.2907)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148BD #B4BD48
analogous
#4879BD #5148BD #8B48BD
triadic
#5148BD #BD5148 #48BD51
tetradic
#5148BD #BD4879 #B4BD48 #48BD8B
square
#5148BD #BD4879 #B4BD48 #48BD8B
split-complementary
#5148BD #BD8B48 #79BD48
monochromatic
#2A2566 #3C3593 #5148BD #7C75CD #A7A2DD

Accessibility & contrast

On white

6.97
#5148BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5148BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148BD
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148BD#FFFFFF#000000##FFFFFF
##5148BD1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#0055BB
Tritanopia (blue-blind)
#15657C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5148bd;
/* rgb */ color: rgb(81, 72, 189);
/* oklch */ color: oklch(48.0% 0.177 280.8);
Tailwind
colors: {
  custom: {
    50: '#8c7bd2',
    500: '#5148bd',
    950: '#000000',
  },
}
SCSS
$custom: #5148bd;
$custom-light: #8c7bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5148bd",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 189
  },
  "hsl": {
    "h": 244.615,
    "s": 46.988,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48039,
    "c": 0.17716,
    "h": 280.8
  },
  "luminance": 0.10058
}

Semantic roles & 50–950 ramp

primary
#5148BD
secondary
#C6CA97
accent
#D751CC
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5148BD

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

Preview Lab → · Contrast checker → · Palette generator →

#5148BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva