#5175E0#5175E0

#5175E0 is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.1% C 0.168 H 267.2°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#5175E0
RGBrgb(81, 117, 224)
HSLhsl(225, 70%, 60%)
HSVhsv(225, 64%, 88%)
CMYKcmyk(63.8%, 47.8%, 0%, 12.2%)
CIE-LABlab(51.67, 20.82, -58.47)
CIE-LCHlch(51.67, 62.06, 289.60°)
OKLaboklab(59.08% -0.0082 -0.1674)
OKLCHoklch(59.08% 0.168 267.2)
XYZxyz(23.2046, 19.8516, 73.1154)
Luminance0.1985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175E0 #E0BC51
analogous
#51BDE0 #5175E0 #7551E0
triadic
#5175E0 #E05175 #75E051
tetradic
#5175E0 #E051BD #E0BC51 #51E075
square
#5175E0 #E051BD #E0BC51 #51E075
split-complementary
#5175E0 #E07551 #BDE051
monochromatic
#1C3C9B #2550CF #5175E0 #859EE9 #B9C7F3

Accessibility & contrast

On white

4.22
#5175E0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#5175E0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175E0
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175E0#FFFFFF#000000##000000
##5175E01.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D82E4
Deuteranopia (green-blind)
#1F75DE
Tritanopia (blue-blind)
#008EA0
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5175e0;
/* rgb */ color: rgb(81, 117, 224);
/* oklch */ color: oklch(59.1% 0.168 267.2);
Tailwind
colors: {
  custom: {
    50: '#8f9cea',
    500: '#5175e0',
    950: '#000000',
  },
}
SCSS
$custom: #5175e0;
$custom-light: #8f9cea;
$custom-dark: #000000;
JSON
{
  "hex": "#5175e0",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 224
  },
  "hsl": {
    "h": 224.895,
    "s": 69.756,
    "l": 59.804
  },
  "oklch": {
    "l": 0.59082,
    "c": 0.16758,
    "h": 267.2
  },
  "luminance": 0.19854
}

Semantic roles & 50–950 ramp

primary
#5175E0
secondary
#E2D4AB
accent
#C03BED
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5175E0

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

Preview Lab → · Contrast checker → · Palette generator →

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