#5165AF#5165AF

#5165AF is a mid, moderate blue. Relative luminance 0.142; OKLCH L 52.6% C 0.119 H 270.5°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5165AF
RGBrgb(81, 101, 175)
HSLhsl(227, 37%, 50%)
HSVhsv(227, 54%, 69%)
CMYKcmyk(53.7%, 42.3%, 0%, 31.4%)
CIE-LABlab(44.45, 14.27, -41.88)
CIE-LCHlch(44.45, 44.25, 288.81°)
OKLaboklab(52.63% 0.001 -0.1189)
OKLCHoklch(52.63% 0.119 270.5)
XYZxyz(15.7824, 14.1507, 42.4488)
Luminance0.1415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5165AF #AF9B51
analogous
#5194AF #5165AF #6C51AF
triadic
#5165AF #AF5165 #65AF51
tetradic
#5165AF #AF5194 #AF9B51 #51AF6C
square
#5165AF #AF5194 #AF9B51 #51AF6C
split-complementary
#5165AF #AF6C51 #94AF51
monochromatic
#2A355C #3D4D85 #5165AF #7B8AC2 #A5AFD6

Accessibility & contrast

On white

5.48
#5165AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#5165AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5165AF
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5165AF#FFFFFF#000000##FFFFFF
##5165AF1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#466DB2
Deuteranopia (green-blind)
#3C65AD
Tritanopia (blue-blind)
#237581
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5165af;
/* rgb */ color: rgb(81, 101, 175);
/* oklch */ color: oklch(52.6% 0.119 270.5);
Tailwind
colors: {
  custom: {
    50: '#8890c7',
    500: '#5165af',
    950: '#000000',
  },
}
SCSS
$custom: #5165af;
$custom-light: #8890c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5165af",
  "rgb": {
    "r": 81,
    "g": 101,
    "b": 175
  },
  "hsl": {
    "h": 227.234,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52627,
    "c": 0.11886,
    "h": 270.5
  },
  "luminance": 0.14152
}

Semantic roles & 50–950 ramp

primary
#5165AF
secondary
#C3BA99
accent
#B55BCD
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #5165AF

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

Preview Lab → · Contrast checker → · Palette generator →

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