#5140CB#5140CB

#5140CB is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 48.0% C 0.205 H 280.9°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#5140CB
RGBrgb(81, 64, 203)
HSLhsl(247, 57%, 52%)
HSVhsv(247, 68%, 80%)
CMYKcmyk(60.1%, 68.5%, 0%, 20.4%)
CIE-LABlab(37.35, 46.15, -69.70)
CIE-LCHlch(37.35, 83.59, 303.51°)
OKLaboklab(47.96% 0.0388 -0.2008)
OKLCHoklch(47.96% 0.205 280.9)
XYZxyz(16.0028, 9.7268, 57.5225)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5140CB #BACB40
analogous
#4075CB #5140CB #9640CB
triadic
#5140CB #CB5140 #40CB51
tetradic
#5140CB #CB4075 #BACB40 #40CB96
square
#5140CB #CB4075 #BACB40 #40CB96
split-complementary
#5140CB #CB9640 #75CB40
monochromatic
#291F72 #3A2CA2 #5140CB #7D70D8 #A9A0E5

Accessibility & contrast

On white

7.13
#5140CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5140CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5140CB
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5140CB#FFFFFF#000000##FFFFFF
##5140CB1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCF
Deuteranopia (green-blind)
#0053C8
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5140cb;
/* rgb */ color: rgb(81, 64, 203);
/* oklch */ color: oklch(48.0% 0.205 280.9);
Tailwind
colors: {
  custom: {
    50: '#8f76dc',
    500: '#5140cb',
    950: '#000000',
  },
}
SCSS
$custom: #5140cb;
$custom-light: #8f76dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5140cb",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 247.338,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.47963,
    "c": 0.20454,
    "h": 280.9
  },
  "luminance": 0.09728
}

Semantic roles & 50–950 ramp

primary
#5140CB
secondary
#CAD295
accent
#E047CE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5140CB

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

Preview Lab → · Contrast checker → · Palette generator →

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