#5165CB#5165CB

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

Color values

HEX#5165CB
RGBrgb(81, 101, 203)
HSLhsl(230, 54%, 56%)
HSVhsv(230, 60%, 80%)
CMYKcmyk(60.1%, 50.2%, 0%, 20.4%)
CIE-LABlab(46.13, 23.63, -55.43)
CIE-LCHlch(46.13, 60.26, 293.09°)
OKLaboklab(54.45% 0.005 -0.1587)
OKLCHoklch(54.45% 0.159 271.8)
XYZxyz(18.8229, 15.3670, 58.4625)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5165CB #CBB751
analogous
#51A2CB #5165CB #7A51CB
triadic
#5165CB #CB5165 #65CB51
tetradic
#5165CB #CB51A2 #CBB751 #51CB7A
square
#5165CB #CB51A2 #CBB751 #51CB7A
split-complementary
#5165CB #CB7A51 #A2CB51
monochromatic
#25337C #3347AC #5165CB #808FD9 #AFB8E7

Accessibility & contrast

On white

5.16
#5165CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#5165CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5165CB
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5165CB#FFFFFF#000000##FFFFFF
##5165CB1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E73CF
Deuteranopia (green-blind)
#1268C9
Tritanopia (blue-blind)
#007C8E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5165cb;
/* rgb */ color: rgb(81, 101, 203);
/* oklch */ color: oklch(54.5% 0.159 271.8);
Tailwind
colors: {
  custom: {
    50: '#8d90db',
    500: '#5165cb',
    950: '#000000',
  },
}
SCSS
$custom: #5165cb;
$custom-light: #8d90db;
$custom-dark: #000000;
JSON
{
  "hex": "#5165cb",
  "rgb": {
    "r": 81,
    "g": 101,
    "b": 203
  },
  "hsl": {
    "h": 230.164,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54453,
    "c": 0.15873,
    "h": 271.8
  },
  "luminance": 0.15368
}

Semantic roles & 50–950 ramp

primary
#5165CB
secondary
#D5CDA3
accent
#C54ADD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5165CB

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

Preview Lab → · Contrast checker → · Palette generator →

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