#5148D4#5148D4

#5148D4 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.0% C 0.207 H 278.7°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5148D4
RGBrgb(81, 72, 212)
HSLhsl(244, 62%, 56%)
HSVhsv(244, 66%, 83%)
CMYKcmyk(61.8%, 66%, 0%, 16.9%)
CIE-LABlab(39.81, 44.38, -70.87)
CIE-LCHlch(39.81, 83.62, 302.06°)
OKLaboklab(49.98% 0.0313 -0.2043)
OKLCHoklch(49.98% 0.207 278.7)
XYZxyz(17.5906, 11.1362, 63.4971)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148D4 #CBD448
analogous
#4885D4 #5148D4 #9748D4
triadic
#5148D4 #D45148 #48D451
tetradic
#5148D4 #D44885 #CBD448 #48D497
square
#5148D4 #D44885 #CBD448 #48D497
split-complementary
#5148D4 #D49748 #85D448
monochromatic
#251F83 #332AB4 #5148D4 #807AE0 #AFABEB

Accessibility & contrast

On white

6.51
#5148D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5148D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148D4
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148D4#FFFFFF#000000##FFFFFF
##5148D41.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D8
Deuteranopia (green-blind)
#0058D1
Tritanopia (blue-blind)
#006C88
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5148d4;
/* rgb */ color: rgb(81, 72, 212);
/* oklch */ color: oklch(50.0% 0.207 278.7);
Tailwind
colors: {
  custom: {
    50: '#907ce2',
    500: '#5148d4',
    950: '#000000',
  },
}
SCSS
$custom: #5148d4;
$custom-light: #907ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#5148d4",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 212
  },
  "hsl": {
    "h": 243.857,
    "s": 61.947,
    "l": 55.686
  },
  "oklch": {
    "l": 0.49975,
    "c": 0.20664,
    "h": 278.7
  },
  "luminance": 0.11138
}

Semantic roles & 50–950 ramp

primary
#5148D4
secondary
#D5D99F
accent
#E543DB
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5148D4

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

Preview Lab → · Contrast checker → · Palette generator →

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