#5165C8#5165C8

#5165C8 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.2% C 0.155 H 271.7°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#5165C8
RGBrgb(81, 101, 200)
HSLhsl(230, 52%, 55%)
HSVhsv(230, 60%, 78%)
CMYKcmyk(59.5%, 49.5%, 0%, 21.6%)
CIE-LABlab(45.94, 22.62, -54.01)
CIE-LCHlch(45.94, 58.56, 292.72°)
OKLaboklab(54.25% 0.0047 -0.1545)
OKLCHoklch(54.25% 0.155 271.7)
XYZxyz(18.4689, 15.2254, 56.5979)
Luminance0.1523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5165C8 #C8B451
analogous
#51A0C8 #5165C8 #7851C8
triadic
#5165C8 #C85165 #65C851
tetradic
#5165C8 #C851A0 #C8B451 #51C878
square
#5165C8 #C851A0 #C8B451 #51C878
split-complementary
#5165C8 #C87851 #A0C851
monochromatic
#263479 #3548A7 #5165C8 #808ED7 #AEB7E5

Accessibility & contrast

On white

5.19
#5165C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#5165C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5165C8
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5165C8#FFFFFF#000000##FFFFFF
##5165C81.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3172CC
Deuteranopia (green-blind)
#1A68C6
Tritanopia (blue-blind)
#007C8D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5165c8;
/* rgb */ color: rgb(81, 101, 200);
/* oklch */ color: oklch(54.2% 0.155 271.7);
Tailwind
colors: {
  custom: {
    50: '#8c90d9',
    500: '#5165c8',
    950: '#000000',
  },
}
SCSS
$custom: #5165c8;
$custom-light: #8c90d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5165c8",
  "rgb": {
    "r": 81,
    "g": 101,
    "b": 200
  },
  "hsl": {
    "h": 229.916,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.54247,
    "c": 0.15455,
    "h": 271.7
  },
  "luminance": 0.15227
}

Semantic roles & 50–950 ramp

primary
#5165C8
secondary
#D3CBA1
accent
#C34CDB
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5165C8

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

Preview Lab → · Contrast checker → · Palette generator →

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