#5164EA#5164EA

#5164EA is a mid, highly saturated blue. Relative luminance 0.168; OKLCH L 56.5% C 0.202 H 272.1°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#5164EA
RGBrgb(81, 100, 234)
HSLhsl(233, 78%, 62%)
HSVhsv(233, 65%, 92%)
CMYKcmyk(65.4%, 57.3%, 0%, 8.2%)
CIE-LABlab(48.01, 34.75, -70.01)
CIE-LCHlch(48.01, 78.16, 296.40°)
OKLaboklab(56.54% 0.0076 -0.2015)
OKLCHoklch(56.54% 0.202 272.1)
XYZxyz(22.7968, 16.8021, 79.8677)
Luminance0.1680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5164EA #EAD751
analogous
#51B1EA #5164EA #8B51EA
triadic
#5164EA #EA5164 #64EA51
tetradic
#5164EA #EA51B1 #EAD751 #51EA8B
square
#5164EA #EA51B1 #EAD751 #51EA8B
split-complementary
#5164EA #EA8B51 #B1EA51
monochromatic
#1528AC #1B34E2 #5164EA #8895F1 #BEC5F7

Accessibility & contrast

On white

4.82
#5164EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#5164EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5164EA
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5164EA#FFFFFF#000000##FFFFFF
##5164EA1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079EF
Deuteranopia (green-blind)
#006BE7
Tritanopia (blue-blind)
#00859D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5164ea;
/* rgb */ color: rgb(81, 100, 234);
/* oklch */ color: oklch(56.5% 0.202 272.1);
Tailwind
colors: {
  custom: {
    50: '#9290f2',
    500: '#5164ea',
    950: '#000000',
  },
}
SCSS
$custom: #5164ea;
$custom-light: #9290f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5164ea",
  "rgb": {
    "r": 81,
    "g": 100,
    "b": 234
  },
  "hsl": {
    "h": 232.549,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.56537,
    "c": 0.20169,
    "h": 272.1
  },
  "luminance": 0.16804
}

Semantic roles & 50–950 ramp

primary
#5164EA
secondary
#E8E1AF
accent
#C10BDB
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C17
muted
#7E7D85

Preview Lab

Preview with #5164EA

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

Preview Lab → · Contrast checker → · Palette generator →

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