#5175DA#5175DA

#5175DA is a mid, vivid blue. Relative luminance 0.195; OKLCH L 58.7% C 0.159 H 266.7°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#5175DA
RGBrgb(81, 117, 218)
HSLhsl(224, 65%, 59%)
HSVhsv(224, 63%, 85%)
CMYKcmyk(62.8%, 46.3%, 0%, 14.5%)
CIE-LABlab(51.30, 18.77, -55.67)
CIE-LCHlch(51.30, 58.75, 288.63°)
OKLaboklab(58.69% -0.0091 -0.1592)
OKLCHoklch(58.69% 0.159 266.7)
XYZxyz(22.4052, 19.5319, 68.9054)
Luminance0.1953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175DA #DAB651
analogous
#51B9DA #5175DA #7151DA
triadic
#5175DA #DA5175 #75DA51
tetradic
#5175DA #DA51B9 #DAB651 #51DA71
square
#5175DA #DA51B9 #DAB651 #51DA71
split-complementary
#5175DA #DA7151 #B9DA51
monochromatic
#1F3D92 #2A52C4 #5175DA #839DE5 #B6C5EF

Accessibility & contrast

On white

4.28
#5175DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#5175DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175DA
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175DA#FFFFFF#000000##000000
##5175DA1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4381DE
Deuteranopia (green-blind)
#2A74D8
Tritanopia (blue-blind)
#008C9D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5175da;
/* rgb */ color: rgb(81, 117, 218);
/* oklch */ color: oklch(58.7% 0.159 266.7);
Tailwind
colors: {
  custom: {
    50: '#8e9ce6',
    500: '#5175da',
    950: '#000000',
  },
}
SCSS
$custom: #5175da;
$custom-light: #8e9ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#5175da",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 218
  },
  "hsl": {
    "h": 224.234,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.58686,
    "c": 0.15941,
    "h": 266.7
  },
  "luminance": 0.19534
}

Semantic roles & 50–950 ramp

primary
#5175DA
secondary
#DED0A8
accent
#BC40E8
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #5175DA

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

Preview Lab → · Contrast checker → · Palette generator →

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