#5140D9#5140D9

#5140D9 is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.2% C 0.222 H 279.5°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#5140D9
RGBrgb(81, 64, 217)
HSLhsl(247, 67%, 55%)
HSVhsv(247, 71%, 85%)
CMYKcmyk(62.7%, 70.5%, 0%, 14.9%)
CIE-LABlab(38.59, 50.46, -75.74)
CIE-LCHlch(38.59, 91.01, 303.67°)
OKLaboklab(49.24% 0.0365 -0.2185)
OKLCHoklch(49.24% 0.222 279.5)
XYZxyz(17.7471, 10.4245, 66.7091)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5140D9 #C8D940
analogous
#407BD9 #5140D9 #9E40D9
triadic
#5140D9 #D95140 #40D951
tetradic
#5140D9 #D9407B #C8D940 #40D99E
square
#5140D9 #D9407B #C8D940 #40D99E
split-complementary
#5140D9 #D99E40 #7BD940
monochromatic
#261A84 #3524B7 #5140D9 #8073E3 #AEA6ED

Accessibility & contrast

On white

6.81
#5140D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5140D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5140D9
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5140D9#FFFFFF#000000##FFFFFF
##5140D91.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DE
Deuteranopia (green-blind)
#0055D6
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5140d9;
/* rgb */ color: rgb(81, 64, 217);
/* oklch */ color: oklch(49.2% 0.222 279.5);
Tailwind
colors: {
  custom: {
    50: '#9177e6',
    500: '#5140d9',
    950: '#000000',
  },
}
SCSS
$custom: #5140d9;
$custom-light: #9177e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5140d9",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 246.667,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49236,
    "c": 0.22153,
    "h": 279.5
  },
  "luminance": 0.10426
}

Semantic roles & 50–950 ramp

primary
#5140D9
secondary
#D3DA9A
accent
#EA3ED7
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5140D9

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

Preview Lab → · Contrast checker → · Palette generator →

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