#5148CF#5148CF

#5148CF is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 49.5% C 0.200 H 279.1°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#5148CF
RGBrgb(81, 72, 207)
HSLhsl(244, 58%, 55%)
HSVhsv(244, 65%, 81%)
CMYKcmyk(60.9%, 65.2%, 0%, 18.8%)
CIE-LABlab(39.39, 42.79, -68.67)
CIE-LCHlch(39.39, 80.91, 301.93°)
OKLaboklab(49.54% 0.0318 -0.1978)
OKLCHoklch(49.54% 0.2 279.1)
XYZxyz(16.9696, 10.8878, 60.2267)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148CF #C6CF48
analogous
#4883CF #5148CF #9548CF
triadic
#5148CF #CF5148 #48CF51
tetradic
#5148CF #CF4883 #C6CF48 #48CF95
square
#5148CF #CF4883 #C6CF48 #48CF95
split-complementary
#5148CF #CF9548 #83CF48
monochromatic
#27217C #362DAD #5148CF #7F78DC #ADA9E8

Accessibility & contrast

On white

6.61
#5148CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5148CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148CF
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148CF#FFFFFF#000000##FFFFFF
##5148CF1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D3
Deuteranopia (green-blind)
#0057CC
Tritanopia (blue-blind)
#006B85
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5148cf;
/* rgb */ color: rgb(81, 72, 207);
/* oklch */ color: oklch(49.5% 0.200 279.1);
Tailwind
colors: {
  custom: {
    50: '#8f7cdf',
    500: '#5148cf',
    950: '#000000',
  },
}
SCSS
$custom: #5148cf;
$custom-light: #8f7cdf;
$custom-dark: #000000;
JSON
{
  "hex": "#5148cf",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 207
  },
  "hsl": {
    "h": 244,
    "s": 58.442,
    "l": 54.706
  },
  "oklch": {
    "l": 0.49543,
    "c": 0.20035,
    "h": 279.1
  },
  "luminance": 0.10889
}

Semantic roles & 50–950 ramp

primary
#5148CF
secondary
#D2D69D
accent
#E246D7
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5148CF

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

Preview Lab → · Contrast checker → · Palette generator →

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