#5179DF#5179DF

#5179DF is a mid, vivid blue. Relative luminance 0.208; OKLCH L 59.8% C 0.161 H 265.7°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5179DF
RGBrgb(81, 121, 223)
HSLhsl(223, 69%, 60%)
HSVhsv(223, 64%, 87%)
CMYKcmyk(63.7%, 45.7%, 0%, 12.5%)
CIE-LABlab(52.67, 18.01, -56.29)
CIE-LCHlch(52.67, 59.10, 287.74°)
OKLaboklab(59.83% -0.0122 -0.1609)
OKLCHoklch(59.83% 0.161 265.7)
XYZxyz(23.5454, 20.7496, 72.5620)
Luminance0.2075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5179DF #DFB751
analogous
#51C0DF #5179DF #7051DF
triadic
#5179DF #DF5179 #79DF51
tetradic
#5179DF #DF51C0 #DFB751 #51DF70
square
#5179DF #DF51C0 #DFB751 #51DF70
split-complementary
#5179DF #DF7051 #C0DF51
monochromatic
#1C3F99 #2655CD #5179DF #85A1E9 #B8C9F2

Accessibility & contrast

On white

4.08
#5179DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#5179DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5179DF
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5179DF#FFFFFF#000000##000000
##5179DF1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4785E3
Deuteranopia (green-blind)
#2D78DD
Tritanopia (blue-blind)
#0090A1
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5179df;
/* rgb */ color: rgb(81, 121, 223);
/* oklch */ color: oklch(59.8% 0.161 265.7);
Tailwind
colors: {
  custom: {
    50: '#8f9fe9',
    500: '#5179df',
    950: '#000000',
  },
}
SCSS
$custom: #5179df;
$custom-light: #8f9fe9;
$custom-dark: #000000;
JSON
{
  "hex": "#5179df",
  "rgb": {
    "r": 81,
    "g": 121,
    "b": 223
  },
  "hsl": {
    "h": 223.099,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.59831,
    "c": 0.16138,
    "h": 265.7
  },
  "luminance": 0.20752
}

Semantic roles & 50–950 ramp

primary
#5179DF
secondary
#E1D2AA
accent
#BA3CEC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5179DF

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

Preview Lab → · Contrast checker → · Palette generator →

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