#5160F1#5160F1

#5160F1 is a mid, highly saturated blue. Relative luminance 0.165; OKLCH L 56.4% C 0.215 H 272.8°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#5160F1
RGBrgb(81, 96, 241)
HSLhsl(234, 85%, 63%)
HSVhsv(234, 66%, 95%)
CMYKcmyk(66.4%, 60.2%, 0%, 5.5%)
CIE-LABlab(47.58, 39.55, -74.64)
CIE-LCHlch(47.58, 84.47, 297.92°)
OKLaboklab(56.38% 0.0107 -0.2152)
OKLCHoklch(56.38% 0.215 272.8)
XYZxyz(23.4481, 16.4638, 85.1442)
Luminance0.1647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5160F1 #F1E251
analogous
#51B0F1 #5160F1 #9251F1
triadic
#5160F1 #F15160 #60F151
tetradic
#5160F1 #F151B0 #F1E251 #51F192
square
#5160F1 #F151B0 #F1E251 #51F192
split-complementary
#5160F1 #F19251 #B0F151
monochromatic
#0F1FB9 #182CEC #5160F1 #8A94F6 #C2C8FA

Accessibility & contrast

On white

4.89
#5160F1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#5160F1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5160F1
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5160F1#FFFFFF#000000##FFFFFF
##5160F11.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F6
Deuteranopia (green-blind)
#006AEE
Tritanopia (blue-blind)
#00849F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5160f1;
/* rgb */ color: rgb(81, 96, 241);
/* oklch */ color: oklch(56.4% 0.215 272.8);
Tailwind
colors: {
  custom: {
    50: '#948df7',
    500: '#5160f1',
    950: '#000000',
  },
}
SCSS
$custom: #5160f1;
$custom-light: #948df7;
$custom-dark: #000000;
JSON
{
  "hex": "#5160f1",
  "rgb": {
    "r": 81,
    "g": 96,
    "b": 241
  },
  "hsl": {
    "h": 234.375,
    "s": 85.106,
    "l": 63.137
  },
  "oklch": {
    "l": 0.56381,
    "c": 0.21546,
    "h": 272.8
  },
  "luminance": 0.16466
}

Semantic roles & 50–950 ramp

primary
#5160F1
secondary
#ECE6B2
accent
#CD04E2
background
#F9F8FF
surface
#F2F0FF
border
#CCCBD7
text
#0F0C17
muted
#7E7D85

Preview Lab

Preview with #5160F1

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

Preview Lab → · Contrast checker → · Palette generator →

#5160F1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva