#5175E9#5175E9

#5175E9 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 59.7% C 0.180 H 267.7°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#5175E9
RGBrgb(81, 117, 233)
HSLhsl(226, 78%, 62%)
HSVhsv(226, 65%, 91%)
CMYKcmyk(65.2%, 49.8%, 0%, 8.6%)
CIE-LABlab(52.23, 23.91, -62.61)
CIE-LCHlch(52.23, 67.02, 290.90°)
OKLaboklab(59.69% -0.0072 -0.1796)
OKLCHoklch(59.69% 0.18 267.7)
XYZxyz(24.4576, 20.3528, 79.7146)
Luminance0.2036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175E9 #E9C551
analogous
#51C1E9 #5175E9 #7951E9
triadic
#5175E9 #E95175 #75E951
tetradic
#5175E9 #E951C1 #E9C551 #51E979
square
#5175E9 #E951C1 #E9C551 #51E979
split-complementary
#5175E9 #E97951 #C1E951
monochromatic
#1639AA #1C4BE0 #5175E9 #87A0F0 #BECBF7

Accessibility & contrast

On white

4.14
#5175E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#5175E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175E9
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175E9#FFFFFF#000000##000000
##5175E91.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3384ED
Deuteranopia (green-blind)
#0076E7
Tritanopia (blue-blind)
#0090A4
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5175e9;
/* rgb */ color: rgb(81, 117, 233);
/* oklch */ color: oklch(59.7% 0.180 267.7);
Tailwind
colors: {
  custom: {
    50: '#919cf1',
    500: '#5175e9',
    950: '#000000',
  },
}
SCSS
$custom: #5175e9;
$custom-light: #919cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#5175e9",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 233
  },
  "hsl": {
    "h": 225.789,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.59693,
    "c": 0.17971,
    "h": 267.7
  },
  "luminance": 0.20355
}

Semantic roles & 50–950 ramp

primary
#5175E9
secondary
#E7DAAF
accent
#A90CDA
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5175E9

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

Preview Lab → · Contrast checker → · Palette generator →

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