#5175DF#5175DF

#5175DF is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.0% C 0.166 H 267.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5175DF
RGBrgb(81, 117, 223)
HSLhsl(225, 69%, 60%)
HSVhsv(225, 64%, 87%)
CMYKcmyk(63.7%, 47.5%, 0%, 12.5%)
CIE-LABlab(51.61, 20.48, -58.00)
CIE-LCHlch(51.61, 61.51, 289.45°)
OKLaboklab(59.01% -0.0084 -0.166)
OKLCHoklch(59.01% 0.166 267.1)
XYZxyz(23.0693, 19.7975, 72.4033)
Luminance0.1980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175DF #DFBB51
analogous
#51BCDF #5175DF #7451DF
triadic
#5175DF #DF5175 #75DF51
tetradic
#5175DF #DF51BC #DFBB51 #51DF74
square
#5175DF #DF51BC #DFBB51 #51DF74
split-complementary
#5175DF #DF7451 #BCDF51
monochromatic
#1C3C99 #2650CD #5175DF #859EE9 #B8C7F2

Accessibility & contrast

On white

4.23
#5175DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#5175DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175DF
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175DF#FFFFFF#000000##000000
##5175DF1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E82E3
Deuteranopia (green-blind)
#2175DD
Tritanopia (blue-blind)
#008D9F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5175df;
/* rgb */ color: rgb(81, 117, 223);
/* oklch */ color: oklch(59.0% 0.166 267.1);
Tailwind
colors: {
  custom: {
    50: '#8f9cea',
    500: '#5175df',
    950: '#000000',
  },
}
SCSS
$custom: #5175df;
$custom-light: #8f9cea;
$custom-dark: #000000;
JSON
{
  "hex": "#5175df",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 223
  },
  "hsl": {
    "h": 224.789,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.59015,
    "c": 0.16622,
    "h": 267.1
  },
  "luminance": 0.198
}

Semantic roles & 50–950 ramp

primary
#5175DF
secondary
#E1D3AA
accent
#BF3CEC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5175DF

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

Preview Lab → · Contrast checker → · Palette generator →

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