#5165F2#5165F2

#5165F2 is a mid, highly saturated blue. Relative luminance 0.175; OKLCH L 57.3% C 0.211 H 271.8°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#5165F2
RGBrgb(81, 101, 242)
HSLhsl(233, 86%, 63%)
HSVhsv(233, 67%, 95%)
CMYKcmyk(66.5%, 58.3%, 0%, 5.1%)
CIE-LABlab(48.84, 36.84, -73.14)
CIE-LCHlch(48.84, 81.90, 296.73°)
OKLaboklab(57.34% 0.0068 -0.2107)
OKLCHoklch(57.34% 0.211 271.8)
XYZxyz(24.0686, 17.4653, 86.0899)
Luminance0.1747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5165F2 #F2DE51
analogous
#51B5F2 #5165F2 #8E51F2
triadic
#5165F2 #F25165 #65F251
tetradic
#5165F2 #F251B5 #F2DE51 #51F28E
square
#5165F2 #F251B5 #F2DE51 #51F28E
split-complementary
#5165F2 #F28E51 #B5F251
monochromatic
#0E23BB #1833EE #5165F2 #8A97F6 #C3CAFB

Accessibility & contrast

On white

4.67
#5165F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#5165F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5165F2
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5165F2#FFFFFF#000000##FFFFFF
##5165F21.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007CF7
Deuteranopia (green-blind)
#006DEF
Tritanopia (blue-blind)
#0088A2
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5165f2;
/* rgb */ color: rgb(81, 101, 242);
/* oklch */ color: oklch(57.3% 0.211 271.8);
Tailwind
colors: {
  custom: {
    50: '#9390f7',
    500: '#5165f2',
    950: '#000000',
  },
}
SCSS
$custom: #5165f2;
$custom-light: #9390f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5165f2",
  "rgb": {
    "r": 81,
    "g": 101,
    "b": 242
  },
  "hsl": {
    "h": 232.547,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.5734,
    "c": 0.21086,
    "h": 271.8
  },
  "luminance": 0.17467
}

Semantic roles & 50–950 ramp

primary
#5165F2
secondary
#ECE5B3
accent
#C703E3
background
#F9F8FF
surface
#F2F0FF
border
#CCCBD7
text
#0F0C17
muted
#7E7D85

Preview Lab

Preview with #5165F2

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

Preview Lab → · Contrast checker → · Palette generator →

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