#5165CC#5165CC

#5165CC is a mid, vivid blue. Relative luminance 0.154; OKLCH L 54.5% C 0.160 H 271.8°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5165CC
RGBrgb(81, 101, 204)
HSLhsl(230, 55%, 56%)
HSVhsv(230, 60%, 80%)
CMYKcmyk(60.3%, 50.5%, 0%, 20%)
CIE-LABlab(46.20, 23.97, -55.90)
CIE-LCHlch(46.20, 60.82, 293.21°)
OKLaboklab(54.52% 0.0051 -0.16)
OKLCHoklch(54.52% 0.16 271.8)
XYZxyz(18.9425, 15.4148, 59.0922)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5165CC #CCB851
analogous
#51A2CC #5165CC #7A51CC
triadic
#5165CC #CC5165 #65CC51
tetradic
#5165CC #CC51A2 #CCB851 #51CC7A
square
#5165CC #CC51A2 #CCB851 #51CC7A
split-complementary
#5165CC #CC7A51 #A2CC51
monochromatic
#25337E #3347AD #5165CC #808FDA #B0B9E8

Accessibility & contrast

On white

5.14
#5165CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#5165CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5165CC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5165CC#FFFFFF#000000##FFFFFF
##5165CC1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D73D0
Deuteranopia (green-blind)
#0E68CA
Tritanopia (blue-blind)
#007D8F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5165cc;
/* rgb */ color: rgb(81, 101, 204);
/* oklch */ color: oklch(54.5% 0.160 271.8);
Tailwind
colors: {
  custom: {
    50: '#8d90dc',
    500: '#5165cc',
    950: '#000000',
  },
}
SCSS
$custom: #5165cc;
$custom-light: #8d90dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5165cc",
  "rgb": {
    "r": 81,
    "g": 101,
    "b": 204
  },
  "hsl": {
    "h": 230.244,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54523,
    "c": 0.16011,
    "h": 271.8
  },
  "luminance": 0.15416
}

Semantic roles & 50–950 ramp

primary
#5165CC
secondary
#D6CEA3
accent
#C64ADE
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5165CC

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

Preview Lab → · Contrast checker → · Palette generator →

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