#5175E2#5175E2

#5175E2 is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.2% C 0.170 H 267.3°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5175E2
RGBrgb(81, 117, 226)
HSLhsl(225, 71%, 60%)
HSVhsv(225, 64%, 89%)
CMYKcmyk(64.2%, 48.2%, 0%, 11.4%)
CIE-LABlab(51.79, 21.51, -59.39)
CIE-LCHlch(51.79, 63.17, 289.91°)
OKLaboklab(59.22% -0.008 -0.1701)
OKLCHoklch(59.22% 0.17 267.3)
XYZxyz(23.4774, 19.9607, 74.5523)
Luminance0.1996 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175E2 #E2BE51
analogous
#51BEE2 #5175E2 #7551E2
triadic
#5175E2 #E25175 #75E251
tetradic
#5175E2 #E251BE #E2BE51 #51E275
square
#5175E2 #E251BE #E2BE51 #51E275
split-complementary
#5175E2 #E27551 #BEE251
monochromatic
#1A3B9E #234FD3 #5175E2 #859FEB #BAC8F3

Accessibility & contrast

On white

4.21
#5175E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#5175E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175E2
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175E2#FFFFFF#000000##000000
##5175E21.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B82E6
Deuteranopia (green-blind)
#1975E0
Tritanopia (blue-blind)
#008EA1
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5175e2;
/* rgb */ color: rgb(81, 117, 226);
/* oklch */ color: oklch(59.2% 0.170 267.3);
Tailwind
colors: {
  custom: {
    50: '#909cec',
    500: '#5175e2',
    950: '#000000',
  },
}
SCSS
$custom: #5175e2;
$custom-light: #909cec;
$custom-dark: #000000;
JSON
{
  "hex": "#5175e2",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 226
  },
  "hsl": {
    "h": 225.103,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.59216,
    "c": 0.17029,
    "h": 267.3
  },
  "luminance": 0.19963
}

Semantic roles & 50–950 ramp

primary
#5175E2
secondary
#E3D5AC
accent
#A312D3
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5175E2

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

Preview Lab → · Contrast checker → · Palette generator →

#5175E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva