#5148DC#5148DC

#5148DC is a mid, highly saturated blue. Relative luminance 0.116; OKLCH L 50.7% C 0.217 H 278.0°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#5148DC
RGBrgb(81, 72, 220)
HSLhsl(244, 68%, 57%)
HSVhsv(244, 67%, 86%)
CMYKcmyk(63.2%, 67.3%, 0%, 13.7%)
CIE-LABlab(40.49, 46.92, -74.34)
CIE-LCHlch(40.49, 87.91, 302.26°)
OKLaboklab(50.68% 0.0303 -0.2144)
OKLCHoklch(50.68% 0.217 278)
XYZxyz(18.6248, 11.5499, 68.9441)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148DC #D3DC48
analogous
#4889DC #5148DC #9B48DC
triadic
#5148DC #DC5148 #48DC51
tetradic
#5148DC #DC4889 #D3DC48 #48DC9B
square
#5148DC #DC4889 #D3DC48 #48DC9B
split-complementary
#5148DC #DC9B48 #89DC48
monochromatic
#221B8E #2F25C2 #5148DC #827BE6 #B3AFF0

Accessibility & contrast

On white

6.34
#5148DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5148DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148DC
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148DC#FFFFFF#000000##FFFFFF
##5148DC1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E1
Deuteranopia (green-blind)
#0059D9
Tritanopia (blue-blind)
#006F8C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5148dc;
/* rgb */ color: rgb(81, 72, 220);
/* oklch */ color: oklch(50.7% 0.217 278.0);
Tailwind
colors: {
  custom: {
    50: '#917ce8',
    500: '#5148dc',
    950: '#000000',
  },
}
SCSS
$custom: #5148dc;
$custom-light: #917ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#5148dc",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 220
  },
  "hsl": {
    "h": 243.649,
    "s": 67.89,
    "l": 57.255
  },
  "oklch": {
    "l": 0.50678,
    "c": 0.21656,
    "h": 278
  },
  "luminance": 0.11551
}

Semantic roles & 50–950 ramp

primary
#5148DC
secondary
#DADEA2
accent
#EB3DE0
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5148DC

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

Preview Lab → · Contrast checker → · Palette generator →

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