#5140D4#5140D4

#5140D4 is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.8% C 0.216 H 280.0°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#5140D4
RGBrgb(81, 64, 212)
HSLhsl(247, 63%, 54%)
HSVhsv(247, 70%, 83%)
CMYKcmyk(61.8%, 69.8%, 0%, 16.9%)
CIE-LABlab(38.14, 48.93, -73.60)
CIE-LCHlch(38.14, 88.38, 303.61°)
OKLaboklab(48.78% 0.0373 -0.2123)
OKLCHoklch(48.78% 0.216 280)
XYZxyz(17.1066, 10.1683, 63.3358)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5140D4 #C3D440
analogous
#4079D4 #5140D4 #9B40D4
triadic
#5140D4 #D45140 #40D451
tetradic
#5140D4 #D44079 #C3D440 #40D49B
square
#5140D4 #D44079 #C3D440 #40D49B
split-complementary
#5140D4 #D49B40 #79D440
monochromatic
#271C7D #3727AF #5140D4 #7F72DF #ACA4EA

Accessibility & contrast

On white

6.92
#5140D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5140D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5140D4
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5140D4#FFFFFF#000000##FFFFFF
##5140D41.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD8
Deuteranopia (green-blind)
#0054D1
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5140d4;
/* rgb */ color: rgb(81, 64, 212);
/* oklch */ color: oklch(48.8% 0.216 280.0);
Tailwind
colors: {
  custom: {
    50: '#9177e2',
    500: '#5140d4',
    950: '#000000',
  },
}
SCSS
$custom: #5140d4;
$custom-light: #9177e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5140d4",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 246.892,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.48776,
    "c": 0.21552,
    "h": 280
  },
  "luminance": 0.1017
}

Semantic roles & 50–950 ramp

primary
#5140D4
secondary
#D0D798
accent
#E642D3
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5140D4

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

Preview Lab → · Contrast checker → · Palette generator →

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