#5165EA#5165EA

#5165EA is a mid, highly saturated blue. Relative luminance 0.170; OKLCH L 56.7% C 0.200 H 271.9°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#5165EA
RGBrgb(81, 101, 234)
HSLhsl(232, 78%, 62%)
HSVhsv(232, 65%, 92%)
CMYKcmyk(65.4%, 56.8%, 0%, 8.2%)
CIE-LABlab(48.25, 34.14, -69.61)
CIE-LCHlch(48.25, 77.53, 296.12°)
OKLaboklab(56.72% 0.0067 -0.2004)
OKLCHoklch(56.72% 0.2 271.9)
XYZxyz(22.8933, 16.9951, 79.8999)
Luminance0.1700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5165EA #EAD651
analogous
#51B2EA #5165EA #8A51EA
triadic
#5165EA #EA5165 #65EA51
tetradic
#5165EA #EA51B2 #EAD651 #51EA8A
square
#5165EA #EA51B2 #EAD651 #51EA8A
split-complementary
#5165EA #EA8A51 #B2EA51
monochromatic
#1528AC #1B35E2 #5165EA #8895F1 #BEC6F7

Accessibility & contrast

On white

4.77
#5165EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#5165EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5165EA
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5165EA#FFFFFF#000000##FFFFFF
##5165EA1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007AEE
Deuteranopia (green-blind)
#006CE7
Tritanopia (blue-blind)
#00859E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5165ea;
/* rgb */ color: rgb(81, 101, 234);
/* oklch */ color: oklch(56.7% 0.200 271.9);
Tailwind
colors: {
  custom: {
    50: '#9290f2',
    500: '#5165ea',
    950: '#000000',
  },
}
SCSS
$custom: #5165ea;
$custom-light: #9290f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5165ea",
  "rgb": {
    "r": 81,
    "g": 101,
    "b": 234
  },
  "hsl": {
    "h": 232.157,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.56719,
    "c": 0.20048,
    "h": 271.9
  },
  "luminance": 0.16997
}

Semantic roles & 50–950 ramp

primary
#5165EA
secondary
#E8E0AF
accent
#C00BDB
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C17
muted
#7E7D85

Preview Lab

Preview with #5165EA

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

Preview Lab → · Contrast checker → · Palette generator →

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