#5161F2#5161F2

#5161F2 is a mid, highly saturated blue. Relative luminance 0.167; OKLCH L 56.6% C 0.216 H 272.6°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#5161F2
RGBrgb(81, 97, 242)
HSLhsl(234, 86%, 63%)
HSVhsv(234, 67%, 95%)
CMYKcmyk(66.5%, 59.9%, 0%, 5.1%)
CIE-LABlab(47.89, 39.28, -74.69)
CIE-LCHlch(47.89, 84.39, 297.74°)
OKLaboklab(56.64% 0.0099 -0.2153)
OKLCHoklch(56.64% 0.216 272.6)
XYZxyz(23.6897, 16.7073, 85.9636)
Luminance0.1671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161F2 #F2E251
analogous
#51B1F2 #5161F2 #9151F2
triadic
#5161F2 #F25161 #61F251
tetradic
#5161F2 #F251B1 #F2E251 #51F291
square
#5161F2 #F251B1 #F2E251 #51F291
split-complementary
#5161F2 #F29151 #B1F251
monochromatic
#0E1FBB #182DEE #5161F2 #8A95F6 #C3C8FB

Accessibility & contrast

On white

4.84
#5161F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#5161F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161F2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161F2#FFFFFF#000000##FFFFFF
##5161F21.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079F7
Deuteranopia (green-blind)
#006AEF
Tritanopia (blue-blind)
#0085A0
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5161f2;
/* rgb */ color: rgb(81, 97, 242);
/* oklch */ color: oklch(56.6% 0.216 272.6);
Tailwind
colors: {
  custom: {
    50: '#948ef7',
    500: '#5161f2',
    950: '#000000',
  },
}
SCSS
$custom: #5161f2;
$custom-light: #948ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#5161f2",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 242
  },
  "hsl": {
    "h": 234.037,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.56635,
    "c": 0.21557,
    "h": 272.6
  },
  "luminance": 0.1671
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5161F2

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

Preview Lab → · Contrast checker → · Palette generator →

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