#5148C2#5148C2

#5148C2 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.4% C 0.184 H 280.3°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#5148C2
RGBrgb(81, 72, 194)
HSLhsl(244, 50%, 52%)
HSVhsv(244, 63%, 76%)
CMYKcmyk(58.2%, 62.9%, 0%, 23.9%)
CIE-LABlab(38.34, 38.64, -62.85)
CIE-LCHlch(38.34, 73.77, 301.58°)
OKLaboklab(48.45% 0.033 -0.1807)
OKLCHoklch(48.45% 0.184 280.3)
XYZxyz(15.4452, 10.2780, 52.1984)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148C2 #B9C248
analogous
#487CC2 #5148C2 #8E48C2
triadic
#5148C2 #C25148 #48C251
tetradic
#5148C2 #C2487C #B9C248 #48C28E
square
#5148C2 #C2487C #B9C248 #48C28E
split-complementary
#5148C2 #C28E48 #7CC248
monochromatic
#29246C #3B339A #5148C2 #7D76D1 #A8A4E1

Accessibility & contrast

On white

6.87
#5148C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5148C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148C2
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148C2#FFFFFF#000000##FFFFFF
##5148C21.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#0056C0
Tritanopia (blue-blind)
#06667E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5148c2;
/* rgb */ color: rgb(81, 72, 194);
/* oklch */ color: oklch(48.4% 0.184 280.3);
Tailwind
colors: {
  custom: {
    50: '#8d7bd5',
    500: '#5148c2',
    950: '#000000',
  },
}
SCSS
$custom: #5148c2;
$custom-light: #8d7bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#5148c2",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 194
  },
  "hsl": {
    "h": 244.426,
    "s": 50,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48448,
    "c": 0.18369,
    "h": 280.3
  },
  "luminance": 0.10279
}

Semantic roles & 50–950 ramp

primary
#5148C2
secondary
#CACE98
accent
#DA4ECF
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5148C2

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

Preview Lab → · Contrast checker → · Palette generator →

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