#5140BD#5140BD

#5140BD is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.7% C 0.187 H 282.6°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#5140BD
RGBrgb(81, 64, 189)
HSLhsl(248, 49%, 50%)
HSVhsv(248, 66%, 74%)
CMYKcmyk(57.1%, 66.1%, 0%, 25.9%)
CIE-LABlab(36.16, 41.80, -63.48)
CIE-LCHlch(36.16, 76.00, 303.36°)
OKLaboklab(46.74% 0.0407 -0.1826)
OKLCHoklch(46.74% 0.187 282.6)
XYZxyz(14.4092, 9.0893, 49.1294)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5140BD #ACBD40
analogous
#406EBD #5140BD #9040BD
triadic
#5140BD #BD5140 #40BD51
tetradic
#5140BD #BD406E #ACBD40 #40BD90
square
#5140BD #BD406E #ACBD40 #40BD90
split-complementary
#5140BD #BD9040 #6EBD40
monochromatic
#2A2162 #3D318F #5140BD #7A6DCD #A39ADD

Accessibility & contrast

On white

7.45
#5140BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5140BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5140BD
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5140BD#FFFFFF#000000##FFFFFF
##5140BD1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C1
Deuteranopia (green-blind)
#0051BB
Tritanopia (blue-blind)
#176079
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5140bd;
/* rgb */ color: rgb(81, 64, 189);
/* oklch */ color: oklch(46.7% 0.187 282.6);
Tailwind
colors: {
  custom: {
    50: '#8d76d2',
    500: '#5140bd',
    950: '#000000',
  },
}
SCSS
$custom: #5140bd;
$custom-light: #8d76d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5140bd",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 248.16,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46737,
    "c": 0.18707,
    "h": 282.6
  },
  "luminance": 0.0909
}

Semantic roles & 50–950 ramp

primary
#5140BD
secondary
#C1C990
accent
#D94FC6
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5140BD

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

Preview Lab → · Contrast checker → · Palette generator →

#5140BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva