#5163F2#5163F2

#5163F2 is a mid, highly saturated blue. Relative luminance 0.171; OKLCH L 57.0% C 0.213 H 272.2°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#5163F2
RGBrgb(81, 99, 242)
HSLhsl(233, 86%, 63%)
HSVhsv(233, 67%, 95%)
CMYKcmyk(66.5%, 59.1%, 0%, 5.1%)
CIE-LABlab(48.36, 38.06, -73.92)
CIE-LCHlch(48.36, 83.15, 297.24°)
OKLaboklab(56.99% 0.0083 -0.2131)
OKLCHoklch(56.99% 0.213 272.2)
XYZxyz(23.8768, 17.0816, 86.0260)
Luminance0.1708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5163F2 #F2E051
analogous
#51B3F2 #5163F2 #8F51F2
triadic
#5163F2 #F25163 #63F251
tetradic
#5163F2 #F251B3 #F2E051 #51F28F
square
#5163F2 #F251B3 #F2E051 #51F28F
split-complementary
#5163F2 #F28F51 #B3F251
monochromatic
#0E21BB #1830EE #5163F2 #8A96F6 #C3C9FB

Accessibility & contrast

On white

4.75
#5163F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#5163F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5163F2
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5163F2#FFFFFF#000000##FFFFFF
##5163F21.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5163f2;
/* rgb */ color: rgb(81, 99, 242);
/* oklch */ color: oklch(57.0% 0.213 272.2);
Tailwind
colors: {
  custom: {
    50: '#948ff7',
    500: '#5163f2',
    950: '#000000',
  },
}
SCSS
$custom: #5163f2;
$custom-light: #948ff7;
$custom-dark: #000000;
JSON
{
  "hex": "#5163f2",
  "rgb": {
    "r": 81,
    "g": 99,
    "b": 242
  },
  "hsl": {
    "h": 233.292,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.56986,
    "c": 0.21322,
    "h": 272.2
  },
  "luminance": 0.17084
}

Semantic roles & 50–950 ramp

primary
#5163F2
secondary
#ECE6B3
accent
#CA03E3
background
#F9F8FF
surface
#F2F0FF
border
#CCCBD7
text
#0F0C17
muted
#7E7D85

Preview Lab

Preview with #5163F2

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

Preview Lab → · Contrast checker → · Palette generator →

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