#5148DF#5148DF

#5148DF is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 50.9% C 0.220 H 277.8°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#5148DF
RGBrgb(81, 72, 223)
HSLhsl(244, 70%, 58%)
HSVhsv(244, 68%, 87%)
CMYKcmyk(63.7%, 67.7%, 0%, 12.5%)
CIE-LABlab(40.75, 47.87, -75.63)
CIE-LCHlch(40.75, 89.50, 302.33°)
OKLaboklab(50.94% 0.0299 -0.2182)
OKLCHoklch(50.94% 0.22 277.8)
XYZxyz(19.0257, 11.7102, 71.0554)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148DF #D6DF48
analogous
#488ADF #5148DF #9C48DF
triadic
#5148DF #DF5148 #48DF51
tetradic
#5148DF #DF488A #D6DF48 #48DF9C
square
#5148DF #DF488A #D6DF48 #48DF9C
split-complementary
#5148DF #DF9C48 #8ADF48
monochromatic
#211A93 #2D23C7 #5148DF #837CE8 #B4B0F1

Accessibility & contrast

On white

6.28
#5148DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5148DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148DF
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148DF#FFFFFF#000000##FFFFFF
##5148DF1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E4
Deuteranopia (green-blind)
#005ADC
Tritanopia (blue-blind)
#00708E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5148df;
/* rgb */ color: rgb(81, 72, 223);
/* oklch */ color: oklch(50.9% 0.220 277.8);
Tailwind
colors: {
  custom: {
    50: '#927cea',
    500: '#5148df',
    950: '#000000',
  },
}
SCSS
$custom: #5148df;
$custom-light: #927cea;
$custom-dark: #000000;
JSON
{
  "hex": "#5148df",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 223
  },
  "hsl": {
    "h": 243.576,
    "s": 70.233,
    "l": 57.843
  },
  "oklch": {
    "l": 0.50945,
    "c": 0.22024,
    "h": 277.8
  },
  "luminance": 0.11712
}

Semantic roles & 50–950 ramp

primary
#5148DF
secondary
#DCE0A3
accent
#ED3BE2
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5148DF

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

Preview Lab → · Contrast checker → · Palette generator →

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