#5164F2#5164F2

#5164F2 is a mid, highly saturated blue. Relative luminance 0.173; OKLCH L 57.2% C 0.212 H 272.0°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#5164F2
RGBrgb(81, 100, 242)
HSLhsl(233, 86%, 63%)
HSVhsv(233, 67%, 95%)
CMYKcmyk(66.5%, 58.7%, 0%, 5.1%)
CIE-LABlab(48.60, 37.45, -73.53)
CIE-LCHlch(48.60, 82.52, 296.99°)
OKLaboklab(57.16% 0.0076 -0.2119)
OKLCHoklch(57.16% 0.212 272)
XYZxyz(23.9721, 17.2722, 86.0577)
Luminance0.1727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5164F2 #F2DF51
analogous
#51B4F2 #5164F2 #8E51F2
triadic
#5164F2 #F25164 #64F251
tetradic
#5164F2 #F251B4 #F2DF51 #51F28E
square
#5164F2 #F251B4 #F2DF51 #51F28E
split-complementary
#5164F2 #F28E51 #B4F251
monochromatic
#0E22BB #1831EE #5164F2 #8A97F6 #C3C9FB

Accessibility & contrast

On white

4.71
#5164F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#5164F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5164F2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5164F2#FFFFFF#000000##FFFFFF
##5164F21.004.714.454.71
#FFFFFF4.711.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#006CEF
Tritanopia (blue-blind)
#0087A1
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5164f2;
/* rgb */ color: rgb(81, 100, 242);
/* oklch */ color: oklch(57.2% 0.212 272.0);
Tailwind
colors: {
  custom: {
    50: '#9390f7',
    500: '#5164f2',
    950: '#000000',
  },
}
SCSS
$custom: #5164f2;
$custom-light: #9390f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5164f2",
  "rgb": {
    "r": 81,
    "g": 100,
    "b": 242
  },
  "hsl": {
    "h": 232.919,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57163,
    "c": 0.21205,
    "h": 272
  },
  "luminance": 0.17274
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5164F2

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

Preview Lab → · Contrast checker → · Palette generator →

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