#5140CA#5140CA

#5140CA is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.9% C 0.203 H 281.0°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#5140CA
RGBrgb(81, 64, 202)
HSLhsl(247, 57%, 52%)
HSVhsv(247, 68%, 79%)
CMYKcmyk(59.9%, 68.3%, 0%, 20.8%)
CIE-LABlab(37.26, 45.84, -69.26)
CIE-LCHlch(37.26, 83.06, 303.50°)
OKLaboklab(47.87% 0.0389 -0.1995)
OKLCHoklch(47.87% 0.203 281)
XYZxyz(15.8841, 9.6793, 56.8969)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5140CA #B9CA40
analogous
#4074CA #5140CA #9640CA
triadic
#5140CA #CA5140 #40CA51
tetradic
#5140CA #CA4074 #B9CA40 #40CA96
square
#5140CA #CA4074 #B9CA40 #40CA96
split-complementary
#5140CA #CA9640 #74CA40
monochromatic
#291F70 #3B2CA0 #5140CA #7D70D7 #A8A0E5

Accessibility & contrast

On white

7.15
#5140CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5140CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5140CA
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5140CA#FFFFFF#000000##FFFFFF
##5140CA1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#0053C7
Tritanopia (blue-blind)
#006480
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5140ca;
/* rgb */ color: rgb(81, 64, 202);
/* oklch */ color: oklch(47.9% 0.203 281.0);
Tailwind
colors: {
  custom: {
    50: '#8f76db',
    500: '#5140ca',
    950: '#000000',
  },
}
SCSS
$custom: #5140ca;
$custom-light: #8f76db;
$custom-dark: #000000;
JSON
{
  "hex": "#5140ca",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 247.391,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47874,
    "c": 0.20331,
    "h": 281
  },
  "luminance": 0.0968
}

Semantic roles & 50–950 ramp

primary
#5140CA
secondary
#CAD195
accent
#E048CD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5140CA

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

Preview Lab → · Contrast checker → · Palette generator →

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