#5148D2#5148D2

#5148D2 is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 49.8% C 0.204 H 278.9°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#5148D2
RGBrgb(81, 72, 210)
HSLhsl(244, 61%, 55%)
HSVhsv(244, 66%, 82%)
CMYKcmyk(61.4%, 65.7%, 0%, 17.6%)
CIE-LABlab(39.64, 43.75, -70.00)
CIE-LCHlch(39.64, 82.54, 302.00°)
OKLaboklab(49.8% 0.0315 -0.2017)
OKLCHoklch(49.8% 0.204 278.9)
XYZxyz(17.3398, 11.0359, 62.1767)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148D2 #C9D248
analogous
#4884D2 #5148D2 #9648D2
triadic
#5148D2 #D25148 #48D251
tetradic
#5148D2 #D24884 #C9D248 #48D296
square
#5148D2 #D24884 #C9D248 #48D296
split-complementary
#5148D2 #D29648 #84D248
monochromatic
#262080 #342CB1 #5148D2 #8079DE #AEAAEA

Accessibility & contrast

On white

6.55
#5148D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5148D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148D2
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148D2#FFFFFF#000000##FFFFFF
##5148D21.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D6
Deuteranopia (green-blind)
#0058CF
Tritanopia (blue-blind)
#006C87
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5148d2;
/* rgb */ color: rgb(81, 72, 210);
/* oklch */ color: oklch(49.8% 0.204 278.9);
Tailwind
colors: {
  custom: {
    50: '#907ce1',
    500: '#5148d2',
    950: '#000000',
  },
}
SCSS
$custom: #5148d2;
$custom-light: #907ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#5148d2",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 210
  },
  "hsl": {
    "h": 243.913,
    "s": 60.526,
    "l": 55.294
  },
  "oklch": {
    "l": 0.49801,
    "c": 0.20414,
    "h": 278.9
  },
  "luminance": 0.11037
}

Semantic roles & 50–950 ramp

primary
#5148D2
secondary
#D4D89E
accent
#E444D9
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5148D2

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

Preview Lab → · Contrast checker → · Palette generator →

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