#5148D3#5148D3

#5148D3 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 49.9% C 0.205 H 278.8°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#5148D3
RGBrgb(81, 72, 211)
HSLhsl(244, 61%, 55%)
HSVhsv(244, 66%, 83%)
CMYKcmyk(61.6%, 65.9%, 0%, 17.3%)
CIE-LABlab(39.72, 44.06, -70.43)
CIE-LCHlch(39.72, 83.08, 302.03°)
OKLaboklab(49.89% 0.0314 -0.203)
OKLCHoklch(49.89% 0.205 278.8)
XYZxyz(17.4648, 11.0859, 62.8348)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148D3 #CAD348
analogous
#4884D3 #5148D3 #9648D3
triadic
#5148D3 #D35148 #48D351
tetradic
#5148D3 #D34884 #CAD348 #48D396
square
#5148D3 #D34884 #CAD348 #48D396
split-complementary
#5148D3 #D39648 #84D348
monochromatic
#251F81 #342BB3 #5148D3 #8079DF #AFABEB

Accessibility & contrast

On white

6.53
#5148D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5148D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148D3
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148D3#FFFFFF#000000##FFFFFF
##5148D31.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D7
Deuteranopia (green-blind)
#0058D0
Tritanopia (blue-blind)
#006C87
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5148d3;
/* rgb */ color: rgb(81, 72, 211);
/* oklch */ color: oklch(49.9% 0.205 278.8);
Tailwind
colors: {
  custom: {
    50: '#907ce2',
    500: '#5148d3',
    950: '#000000',
  },
}
SCSS
$custom: #5148d3;
$custom-light: #907ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#5148d3",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 211
  },
  "hsl": {
    "h": 243.885,
    "s": 61.233,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49888,
    "c": 0.20539,
    "h": 278.8
  },
  "luminance": 0.11087
}

Semantic roles & 50–950 ramp

primary
#5148D3
secondary
#D5D89E
accent
#E443DA
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0915
muted
#7E7B84

Preview Lab

Preview with #5148D3

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

Preview Lab → · Contrast checker → · Palette generator →

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