#5148D8#5148D8

#5148D8 is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.3% C 0.212 H 278.4°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#5148D8
RGBrgb(81, 72, 216)
HSLhsl(244, 65%, 56%)
HSVhsv(244, 67%, 85%)
CMYKcmyk(62.5%, 66.7%, 0%, 15.3%)
CIE-LABlab(40.15, 45.65, -72.61)
CIE-LCHlch(40.15, 85.77, 302.16°)
OKLaboklab(50.33% 0.0308 -0.2094)
OKLCHoklch(50.33% 0.212 278.4)
XYZxyz(18.1014, 11.3405, 66.1875)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148D8 #CFD848
analogous
#4887D8 #5148D8 #9948D8
triadic
#5148D8 #D85148 #48D851
tetradic
#5148D8 #D84887 #CFD848 #48D899
square
#5148D8 #D84887 #CFD848 #48D899
split-complementary
#5148D8 #D89948 #87D848
monochromatic
#241D89 #3128BB #5148D8 #817AE3 #B1ADEE

Accessibility & contrast

On white

6.43
#5148D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5148D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148D8
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148D8#FFFFFF#000000##FFFFFF
##5148D81.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DC
Deuteranopia (green-blind)
#0059D5
Tritanopia (blue-blind)
#006E8A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5148d8;
/* rgb */ color: rgb(81, 72, 216);
/* oklch */ color: oklch(50.3% 0.212 278.4);
Tailwind
colors: {
  custom: {
    50: '#917ce5',
    500: '#5148d8',
    950: '#000000',
  },
}
SCSS
$custom: #5148d8;
$custom-light: #917ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#5148d8",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 216
  },
  "hsl": {
    "h": 243.75,
    "s": 64.865,
    "l": 56.471
  },
  "oklch": {
    "l": 0.50325,
    "c": 0.21162,
    "h": 278.4
  },
  "luminance": 0.11342
}

Semantic roles & 50–950 ramp

primary
#5148D8
secondary
#D8DBA0
accent
#E840DD
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5148D8

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

Preview Lab → · Contrast checker → · Palette generator →

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