#5175E8#5175E8

#5175E8 is a mid, vivid blue. Relative luminance 0.203; OKLCH L 59.6% C 0.178 H 267.6°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#5175E8
RGBrgb(81, 117, 232)
HSLhsl(226, 77%, 61%)
HSVhsv(226, 65%, 91%)
CMYKcmyk(65.1%, 49.6%, 0%, 9%)
CIE-LABlab(52.17, 23.57, -62.15)
CIE-LCHlch(52.17, 66.47, 290.77°)
OKLaboklab(59.62% -0.0073 -0.1782)
OKLCHoklch(59.62% 0.178 267.6)
XYZxyz(24.3151, 20.2958, 78.9644)
Luminance0.2030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175E8 #E8C451
analogous
#51C1E8 #5175E8 #7951E8
triadic
#5175E8 #E85175 #75E851
tetradic
#5175E8 #E851C1 #E8C451 #51E879
square
#5175E8 #E851C1 #E8C451 #51E879
split-complementary
#5175E8 #E87951 #C1E851
monochromatic
#1639A8 #1D4BDE #5175E8 #87A0EF #BDCBF6

Accessibility & contrast

On white

4.15
#5175E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#5175E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175E8
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175E8#FFFFFF#000000##000000
##5175E81.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3484EC
Deuteranopia (green-blind)
#0076E6
Tritanopia (blue-blind)
#0090A3
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5175e8;
/* rgb */ color: rgb(81, 117, 232);
/* oklch */ color: oklch(59.6% 0.178 267.6);
Tailwind
colors: {
  custom: {
    50: '#919cf0',
    500: '#5175e8',
    950: '#000000',
  },
}
SCSS
$custom: #5175e8;
$custom-light: #919cf0;
$custom-dark: #000000;
JSON
{
  "hex": "#5175e8",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 232
  },
  "hsl": {
    "h": 225.695,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.59624,
    "c": 0.17837,
    "h": 267.6
  },
  "luminance": 0.20298
}

Semantic roles & 50–950 ramp

primary
#5175E8
secondary
#E7D9AE
accent
#A80DD9
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5175E8

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

Preview Lab → · Contrast checker → · Palette generator →

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