#5169F2#5169F2

#5169F2 is a mid, highly saturated blue. Relative luminance 0.183; OKLCH L 58.1% C 0.206 H 271.0°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#5169F2
RGBrgb(81, 105, 242)
HSLhsl(231, 86%, 63%)
HSVhsv(231, 67%, 95%)
CMYKcmyk(66.5%, 56.6%, 0%, 5.1%)
CIE-LABlab(49.81, 34.40, -71.57)
CIE-LCHlch(49.81, 79.40, 295.67°)
OKLaboklab(58.06% 0.0036 -0.2061)
OKLCHoklch(58.06% 0.206 271)
XYZxyz(24.4665, 18.2610, 86.2225)
Luminance0.1826 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5169F2 #F2DA51
analogous
#51B9F2 #5169F2 #8951F2
triadic
#5169F2 #F25169 #69F251
tetradic
#5169F2 #F251B9 #F2DA51 #51F289
square
#5169F2 #F251B9 #F2DA51 #51F289
split-complementary
#5169F2 #F28951 #B9F251
monochromatic
#0E28BB #1838EE #5169F2 #8A9AF6 #C3CBFB

Accessibility & contrast

On white

4.51
#5169F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#5169F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5169F2
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5169F2#FFFFFF#000000##000000
##5169F21.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5169f2;
/* rgb */ color: rgb(81, 105, 242);
/* oklch */ color: oklch(58.1% 0.206 271.0);
Tailwind
colors: {
  custom: {
    50: '#9393f7',
    500: '#5169f2',
    950: '#000000',
  },
}
SCSS
$custom: #5169f2;
$custom-light: #9393f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5169f2",
  "rgb": {
    "r": 81,
    "g": 105,
    "b": 242
  },
  "hsl": {
    "h": 231.056,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.58063,
    "c": 0.2061,
    "h": 271
  },
  "luminance": 0.18263
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5169F2

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

Preview Lab → · Contrast checker → · Palette generator →

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