#5160EA#5160EA

#5160EA is a mid, highly saturated blue. Relative luminance 0.161; OKLCH L 55.8% C 0.206 H 273.0°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5160EA
RGBrgb(81, 96, 234)
HSLhsl(234, 78%, 62%)
HSVhsv(234, 65%, 92%)
CMYKcmyk(65.4%, 59%, 0%, 8.2%)
CIE-LABlab(47.04, 37.20, -71.58)
CIE-LCHlch(47.04, 80.67, 297.46°)
OKLaboklab(55.82% 0.0108 -0.2062)
OKLCHoklch(55.82% 0.206 273)
XYZxyz(22.4225, 16.0536, 79.7429)
Luminance0.1606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5160EA #EADB51
analogous
#51ACEA #5160EA #8F51EA
triadic
#5160EA #EA5160 #60EA51
tetradic
#5160EA #EA51AC #EADB51 #51EA8F
square
#5160EA #EA51AC #EADB51 #51EA8F
split-complementary
#5160EA #EA8F51 #ACEA51
monochromatic
#1524AC #1B2FE2 #5160EA #8892F1 #BEC4F7

Accessibility & contrast

On white

4.99
#5160EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#5160EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5160EA
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5160EA#FFFFFF#000000##FFFFFF
##5160EA1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077EF
Deuteranopia (green-blind)
#0069E7
Tritanopia (blue-blind)
#00829C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5160ea;
/* rgb */ color: rgb(81, 96, 234);
/* oklch */ color: oklch(55.8% 0.206 273.0);
Tailwind
colors: {
  custom: {
    50: '#928df2',
    500: '#5160ea',
    950: '#000000',
  },
}
SCSS
$custom: #5160ea;
$custom-light: #928df2;
$custom-dark: #000000;
JSON
{
  "hex": "#5160ea",
  "rgb": {
    "r": 81,
    "g": 96,
    "b": 234
  },
  "hsl": {
    "h": 234.118,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.55821,
    "c": 0.20648,
    "h": 273
  },
  "luminance": 0.16056
}

Semantic roles & 50–950 ramp

primary
#5160EA
secondary
#E8E2AF
accent
#C60BDB
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C17
muted
#7E7D85

Preview Lab

Preview with #5160EA

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

Preview Lab → · Contrast checker → · Palette generator →

#5160EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva