#5179F2#5179F2

#5179F2 is a mid, vivid blue. Relative luminance 0.218; OKLCH L 61.1% C 0.187 H 267.0°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5179F2
RGBrgb(81, 121, 242)
HSLhsl(225, 86%, 63%)
HSVhsv(225, 67%, 95%)
CMYKcmyk(66.5%, 50%, 0%, 5.1%)
CIE-LABlab(53.85, 24.55, -65.03)
CIE-LCHlch(53.85, 69.51, 290.68°)
OKLaboklab(61.1% -0.0098 -0.1866)
OKLCHoklch(61.1% 0.187 267)
XYZxyz(26.2522, 21.8323, 86.8178)
Luminance0.2183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5179F2 #F2CA51
analogous
#51C9F2 #5179F2 #7951F2
triadic
#5179F2 #F25179 #79F251
tetradic
#5179F2 #F251C9 #F2CA51 #51F279
square
#5179F2 #F251C9 #F2CA51 #51F279
split-complementary
#5179F2 #F27951 #C9F251
monochromatic
#0E39BB #184DEE #5179F2 #8AA5F6 #C3D1FB

Accessibility & contrast

On white

3.91
#5179F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#5179F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5179F2
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5179F2#FFFFFF#000000##000000
##5179F21.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3288F6
Deuteranopia (green-blind)
#007AF0
Tritanopia (blue-blind)
#0095AA
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5179f2;
/* rgb */ color: rgb(81, 121, 242);
/* oklch */ color: oklch(61.1% 0.187 267.0);
Tailwind
colors: {
  custom: {
    50: '#929ff7',
    500: '#5179f2',
    950: '#000000',
  },
}
SCSS
$custom: #5179f2;
$custom-light: #929ff7;
$custom-dark: #000000;
JSON
{
  "hex": "#5179f2",
  "rgb": {
    "r": 81,
    "g": 121,
    "b": 242
  },
  "hsl": {
    "h": 225.093,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61103,
    "c": 0.18689,
    "h": 267
  },
  "luminance": 0.21835
}

Semantic roles & 50–950 ramp

primary
#5179F2
secondary
#ECDEB3
accent
#AB03E3
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5179F2

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

Preview Lab → · Contrast checker → · Palette generator →

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