#5140CD#5140CD

#5140CD is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.1% C 0.207 H 280.7°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#5140CD
RGBrgb(81, 64, 205)
HSLhsl(247, 59%, 53%)
HSVhsv(247, 69%, 80%)
CMYKcmyk(60.5%, 68.8%, 0%, 19.6%)
CIE-LABlab(37.52, 46.77, -70.58)
CIE-LCHlch(37.52, 84.66, 303.53°)
OKLaboklab(48.14% 0.0385 -0.2034)
OKLCHoklch(48.14% 0.207 280.7)
XYZxyz(16.2427, 9.8227, 58.7858)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5140CD #BCCD40
analogous
#4075CD #5140CD #9740CD
triadic
#5140CD #CD5140 #40CD51
tetradic
#5140CD #CD4075 #BCCD40 #40CD97
square
#5140CD #CD4075 #BCCD40 #40CD97
split-complementary
#5140CD #CD9740 #75CD40
monochromatic
#291E74 #3A2BA5 #5140CD #7D71DA #A9A1E6

Accessibility & contrast

On white

7.08
#5140CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5140CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5140CD
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5140CD#FFFFFF#000000##FFFFFF
##5140CD1.007.082.967.08
#FFFFFF7.081.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD1
Deuteranopia (green-blind)
#0053CA
Tritanopia (blue-blind)
#006581
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5140cd;
/* rgb */ color: rgb(81, 64, 205);
/* oklch */ color: oklch(48.1% 0.207 280.7);
Tailwind
colors: {
  custom: {
    50: '#8f76dd',
    500: '#5140cd',
    950: '#000000',
  },
}
SCSS
$custom: #5140cd;
$custom-light: #8f76dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5140cd",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 247.234,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48142,
    "c": 0.207,
    "h": 280.7
  },
  "luminance": 0.09824
}

Semantic roles & 50–950 ramp

primary
#5140CD
secondary
#CCD396
accent
#E246CF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5140CD

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

Preview Lab → · Contrast checker → · Palette generator →

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