#5165AE#5165AE

#5165AE is a mid, moderate blue. Relative luminance 0.141; OKLCH L 52.6% C 0.117 H 270.4°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#5165AE
RGBrgb(81, 101, 174)
HSLhsl(227, 36%, 50%)
HSVhsv(227, 53%, 68%)
CMYKcmyk(53.4%, 42%, 0%, 31.8%)
CIE-LABlab(44.39, 13.94, -41.39)
CIE-LCHlch(44.39, 43.67, 288.61°)
OKLaboklab(52.57% 0.0008 -0.1174)
OKLCHoklch(52.57% 0.117 270.4)
XYZxyz(15.6845, 14.1116, 41.9335)
Luminance0.1411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5165AE #AE9A51
analogous
#5193AE #5165AE #6C51AE
triadic
#5165AE #AE5165 #65AE51
tetradic
#5165AE #AE5193 #AE9A51 #51AE6C
square
#5165AE #AE5193 #AE9A51 #51AE6C
split-complementary
#5165AE #AE6C51 #93AE51
monochromatic
#2A355A #3E4D84 #5165AE #7B8AC1 #A5AFD5

Accessibility & contrast

On white

5.49
#5165AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#5165AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5165AE
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5165AE#FFFFFF#000000##FFFFFF
##5165AE1.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#476DB1
Deuteranopia (green-blind)
#3C65AC
Tritanopia (blue-blind)
#247581
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5165ae;
/* rgb */ color: rgb(81, 101, 174);
/* oklch */ color: oklch(52.6% 0.117 270.4);
Tailwind
colors: {
  custom: {
    50: '#8890c6',
    500: '#5165ae',
    950: '#000000',
  },
}
SCSS
$custom: #5165ae;
$custom-light: #8890c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5165ae",
  "rgb": {
    "r": 81,
    "g": 101,
    "b": 174
  },
  "hsl": {
    "h": 227.097,
    "s": 36.471,
    "l": 50
  },
  "oklch": {
    "l": 0.52566,
    "c": 0.1174,
    "h": 270.4
  },
  "luminance": 0.14113
}

Semantic roles & 50–950 ramp

primary
#5165AE
secondary
#C2B999
accent
#B45BCC
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #5165AE

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

Preview Lab → · Contrast checker → · Palette generator →

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