#5148D9#5148D9

#5148D9 is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.4% C 0.213 H 278.3°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#5148D9
RGBrgb(81, 72, 217)
HSLhsl(244, 66%, 57%)
HSVhsv(244, 67%, 85%)
CMYKcmyk(62.7%, 66.8%, 0%, 14.9%)
CIE-LABlab(40.23, 45.97, -73.05)
CIE-LCHlch(40.23, 86.31, 302.18°)
OKLaboklab(50.41% 0.0307 -0.2106)
OKLCHoklch(50.41% 0.213 278.3)
XYZxyz(18.2311, 11.3924, 66.8704)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148D9 #D0D948
analogous
#4888D9 #5148D9 #9A48D9
triadic
#5148D9 #D95148 #48D951
tetradic
#5148D9 #D94888 #D0D948 #48D99A
square
#5148D9 #D94888 #D0D948 #48D99A
split-complementary
#5148D9 #D99A48 #88D948
monochromatic
#231D8A #3027BD #5148D9 #817BE4 #B1ADEE

Accessibility & contrast

On white

6.40
#5148D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5148D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148D9
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148D9#FFFFFF#000000##FFFFFF
##5148D91.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DD
Deuteranopia (green-blind)
#0059D6
Tritanopia (blue-blind)
#006E8A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5148d9;
/* rgb */ color: rgb(81, 72, 217);
/* oklch */ color: oklch(50.4% 0.213 278.3);
Tailwind
colors: {
  custom: {
    50: '#917ce6',
    500: '#5148d9',
    950: '#000000',
  },
}
SCSS
$custom: #5148d9;
$custom-light: #917ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#5148d9",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 217
  },
  "hsl": {
    "h": 243.724,
    "s": 65.611,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50413,
    "c": 0.21286,
    "h": 278.3
  },
  "luminance": 0.11394
}

Semantic roles & 50–950 ramp

primary
#5148D9
secondary
#D8DCA1
accent
#E93FDE
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5148D9

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

Preview Lab → · Contrast checker → · Palette generator →

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