#5140BF#5140BF

#5140BF is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.9% C 0.190 H 282.3°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#5140BF
RGBrgb(81, 64, 191)
HSLhsl(248, 50%, 50%)
HSVhsv(248, 66%, 75%)
CMYKcmyk(57.6%, 66.5%, 0%, 25.1%)
CIE-LABlab(36.32, 42.42, -64.38)
CIE-LCHlch(36.32, 77.10, 303.38°)
OKLaboklab(46.91% 0.0405 -0.1852)
OKLCHoklch(46.91% 0.19 282.3)
XYZxyz(14.6278, 9.1768, 50.2806)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5140BF #AEBF40
analogous
#406FBF #5140BF #9040BF
triadic
#5140BF #BF5140 #40BF51
tetradic
#5140BF #BF406F #AEBF40 #40BF90
square
#5140BF #BF406F #AEBF40 #40BF90
split-complementary
#5140BF #BF9040 #6FBF40
monochromatic
#2A2163 #3E3191 #5140BF #7B6ECE #A59CDE

Accessibility & contrast

On white

7.41
#5140BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5140BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5140BF
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5140BF#FFFFFF#000000##FFFFFF
##5140BF1.007.412.847.41
#FFFFFF7.411.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#0051BD
Tritanopia (blue-blind)
#12607A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5140bf;
/* rgb */ color: rgb(81, 64, 191);
/* oklch */ color: oklch(46.9% 0.190 282.3);
Tailwind
colors: {
  custom: {
    50: '#8d76d3',
    500: '#5140bf',
    950: '#000000',
  },
}
SCSS
$custom: #5140bf;
$custom-light: #8d76d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5140bf",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 248.031,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.46909,
    "c": 0.18959,
    "h": 282.3
  },
  "luminance": 0.09178
}

Semantic roles & 50–950 ramp

primary
#5140BF
secondary
#C2CA91
accent
#D94EC7
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5140BF

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

Preview Lab → · Contrast checker → · Palette generator →

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