#5140C8#5140C8

#5140C8 is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.7% C 0.201 H 281.3°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5140C8
RGBrgb(81, 64, 200)
HSLhsl(248, 55%, 52%)
HSVhsv(248, 68%, 78%)
CMYKcmyk(59.5%, 68%, 0%, 21.6%)
CIE-LABlab(37.09, 45.22, -68.38)
CIE-LCHlch(37.09, 81.98, 303.47°)
OKLaboklab(47.7% 0.0392 -0.197)
OKLCHoklch(47.7% 0.201 281.3)
XYZxyz(15.6488, 9.5852, 55.6579)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5140C8 #B7C840
analogous
#4073C8 #5140C8 #9540C8
triadic
#5140C8 #C85140 #40C851
tetradic
#5140C8 #C84073 #B7C840 #40C895
square
#5140C8 #C84073 #B7C840 #40C895
split-complementary
#5140C8 #C89540 #73C840
monochromatic
#29206E #3B2D9D #5140C8 #7C70D6 #A89FE3

Accessibility & contrast

On white

7.20
#5140C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5140C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5140C8
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5140C8#FFFFFF#000000##FFFFFF
##5140C81.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCC
Deuteranopia (green-blind)
#0052C5
Tritanopia (blue-blind)
#00647F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5140c8;
/* rgb */ color: rgb(81, 64, 200);
/* oklch */ color: oklch(47.7% 0.201 281.3);
Tailwind
colors: {
  custom: {
    50: '#8e76da',
    500: '#5140c8',
    950: '#000000',
  },
}
SCSS
$custom: #5140c8;
$custom-light: #8e76da;
$custom-dark: #000000;
JSON
{
  "hex": "#5140c8",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 247.5,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.47696,
    "c": 0.20084,
    "h": 281.3
  },
  "luminance": 0.09586
}

Semantic roles & 50–950 ramp

primary
#5140C8
secondary
#C8D094
accent
#DF49CC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5140C8

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

Preview Lab → · Contrast checker → · Palette generator →

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