#5162F2#5162F2

#5162F2 is a mid, highly saturated blue. Relative luminance 0.169; OKLCH L 56.8% C 0.214 H 272.4°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#5162F2
RGBrgb(81, 98, 242)
HSLhsl(234, 86%, 63%)
HSVhsv(234, 67%, 95%)
CMYKcmyk(66.5%, 59.5%, 0%, 5.1%)
CIE-LABlab(48.13, 38.67, -74.31)
CIE-LCHlch(48.13, 83.77, 297.49°)
OKLaboklab(56.81% 0.0091 -0.2142)
OKLCHoklch(56.81% 0.214 272.4)
XYZxyz(23.7827, 16.8933, 85.9946)
Luminance0.1690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5162F2 #F2E151
analogous
#51B2F2 #5162F2 #9151F2
triadic
#5162F2 #F25162 #62F251
tetradic
#5162F2 #F251B2 #F2E151 #51F291
square
#5162F2 #F251B2 #F2E151 #51F291
split-complementary
#5162F2 #F29151 #B2F251
monochromatic
#0E20BB #182FEE #5162F2 #8A95F6 #C3C9FB

Accessibility & contrast

On white

4.80
#5162F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#5162F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5162F2
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5162F2#FFFFFF#000000##FFFFFF
##5162F21.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007AF7
Deuteranopia (green-blind)
#006BEF
Tritanopia (blue-blind)
#0086A1
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5162f2;
/* rgb */ color: rgb(81, 98, 242);
/* oklch */ color: oklch(56.8% 0.214 272.4);
Tailwind
colors: {
  custom: {
    50: '#948ef7',
    500: '#5162f2',
    950: '#000000',
  },
}
SCSS
$custom: #5162f2;
$custom-light: #948ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#5162f2",
  "rgb": {
    "r": 81,
    "g": 98,
    "b": 242
  },
  "hsl": {
    "h": 233.665,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.5681,
    "c": 0.21439,
    "h": 272.4
  },
  "luminance": 0.16896
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5162F2

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

Preview Lab → · Contrast checker → · Palette generator →

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