#5165B2#5165B2

#5165B2 is a mid, vivid blue. Relative luminance 0.143; OKLCH L 52.8% C 0.123 H 270.7°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#5165B2
RGBrgb(81, 101, 178)
HSLhsl(228, 39%, 51%)
HSVhsv(228, 54%, 70%)
CMYKcmyk(54.5%, 43.3%, 0%, 30.2%)
CIE-LABlab(44.62, 15.26, -43.37)
CIE-LCHlch(44.62, 45.98, 289.38°)
OKLaboklab(52.81% 0.0016 -0.1232)
OKLCHoklch(52.81% 0.123 270.7)
XYZxyz(16.0803, 14.2699, 44.0179)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5165B2 #B29E51
analogous
#5195B2 #5165B2 #6D51B2
triadic
#5165B2 #B25165 #65B251
tetradic
#5165B2 #B25195 #B29E51 #51B26D
square
#5165B2 #B25195 #B29E51 #51B26D
split-complementary
#5165B2 #B26D51 #95B251
monochromatic
#2A355F #3D4C89 #5165B2 #7B8BC5 #A6B0D8

Accessibility & contrast

On white

5.45
#5165B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#5165B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5165B2
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5165B2#FFFFFF#000000##FFFFFF
##5165B21.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446EB5
Deuteranopia (green-blind)
#3966B0
Tritanopia (blue-blind)
#1F7683
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5165b2;
/* rgb */ color: rgb(81, 101, 178);
/* oklch */ color: oklch(52.8% 0.123 270.7);
Tailwind
colors: {
  custom: {
    50: '#8990c9',
    500: '#5165b2',
    950: '#000000',
  },
}
SCSS
$custom: #5165b2;
$custom-light: #8990c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5165b2",
  "rgb": {
    "r": 81,
    "g": 101,
    "b": 178
  },
  "hsl": {
    "h": 227.629,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52812,
    "c": 0.12323,
    "h": 270.7
  },
  "luminance": 0.14271
}

Semantic roles & 50–950 ramp

primary
#5165B2
secondary
#C5BC9A
accent
#B659CF
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #5165B2

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

Preview Lab → · Contrast checker → · Palette generator →

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