#5175DC#5175DC

#5175DC is a mid, vivid blue. Relative luminance 0.196; OKLCH L 58.8% C 0.162 H 266.9°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#5175DC
RGBrgb(81, 117, 220)
HSLhsl(224, 67%, 59%)
HSVhsv(224, 63%, 86%)
CMYKcmyk(63.2%, 46.8%, 0%, 13.7%)
CIE-LABlab(51.42, 19.45, -56.60)
CIE-LCHlch(51.42, 59.85, 288.96°)
OKLaboklab(58.82% -0.0088 -0.1619)
OKLCHoklch(58.82% 0.162 266.9)
XYZxyz(22.6685, 19.6372, 70.2920)
Luminance0.1964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175DC #DCB851
analogous
#51BBDC #5175DC #7351DC
triadic
#5175DC #DC5175 #75DC51
tetradic
#5175DC #DC51BB #DCB851 #51DC73
square
#5175DC #DC51BB #DCB851 #51DC73
split-complementary
#5175DC #DC7351 #BBDC51
monochromatic
#1E3D95 #2851C8 #5175DC #849DE6 #B7C6F0

Accessibility & contrast

On white

4.26
#5175DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#5175DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175DC
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175DC#FFFFFF#000000##000000
##5175DC1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4181E0
Deuteranopia (green-blind)
#2775DA
Tritanopia (blue-blind)
#008D9E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5175dc;
/* rgb */ color: rgb(81, 117, 220);
/* oklch */ color: oklch(58.8% 0.162 266.9);
Tailwind
colors: {
  custom: {
    50: '#8f9ce7',
    500: '#5175dc',
    950: '#000000',
  },
}
SCSS
$custom: #5175dc;
$custom-light: #8f9ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#5175dc",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 220
  },
  "hsl": {
    "h": 224.46,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58817,
    "c": 0.16214,
    "h": 266.9
  },
  "luminance": 0.19639
}

Semantic roles & 50–950 ramp

primary
#5175DC
secondary
#E0D2A9
accent
#BD3EE9
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5175DC

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

Preview Lab → · Contrast checker → · Palette generator →

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