#5168F2#5168F2

#5168F2 is a mid, highly saturated blue. Relative luminance 0.181; OKLCH L 57.9% C 0.207 H 271.2°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#5168F2
RGBrgb(81, 104, 242)
HSLhsl(231, 86%, 63%)
HSVhsv(231, 67%, 95%)
CMYKcmyk(66.5%, 57%, 0%, 5.1%)
CIE-LABlab(49.57, 35.01, -71.96)
CIE-LCHlch(49.57, 80.03, 295.94°)
OKLaboklab(57.88% 0.0044 -0.2072)
OKLCHoklch(57.88% 0.207 271.2)
XYZxyz(24.3652, 18.0585, 86.1888)
Luminance0.1806 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168F2 #F2DB51
analogous
#51B8F2 #5168F2 #8B51F2
triadic
#5168F2 #F25168 #68F251
tetradic
#5168F2 #F251B8 #F2DB51 #51F28B
square
#5168F2 #F251B8 #F2DB51 #51F28B
split-complementary
#5168F2 #F28B51 #B8F251
monochromatic
#0E27BB #1837EE #5168F2 #8A99F6 #C3CBFB

Accessibility & contrast

On white

4.55
#5168F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#5168F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5168F2
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168F2#FFFFFF#000000##000000
##5168F21.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF7
Deuteranopia (green-blind)
#006FEF
Tritanopia (blue-blind)
#008AA3
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5168f2;
/* rgb */ color: rgb(81, 104, 242);
/* oklch */ color: oklch(57.9% 0.207 271.2);
Tailwind
colors: {
  custom: {
    50: '#9393f7',
    500: '#5168f2',
    950: '#000000',
  },
}
SCSS
$custom: #5168f2;
$custom-light: #9393f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5168f2",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 242
  },
  "hsl": {
    "h": 231.429,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57881,
    "c": 0.2073,
    "h": 271.2
  },
  "luminance": 0.18061
}

Semantic roles & 50–950 ramp

primary
#5168F2
secondary
#ECE4B3
accent
#C303E3
background
#F9F9FF
surface
#F2F1FF
border
#CCCBD7
text
#0F0D17
muted
#7E7E85

Preview Lab

Preview with #5168F2

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

Preview Lab → · Contrast checker → · Palette generator →

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