#5175D0#5175D0

#5175D0 is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.0% C 0.146 H 265.8°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5175D0
RGBrgb(81, 117, 208)
HSLhsl(223, 57%, 57%)
HSVhsv(223, 61%, 82%)
CMYKcmyk(61.1%, 43.8%, 0%, 18.4%)
CIE-LABlab(50.72, 15.36, -50.94)
CIE-LCHlch(50.72, 53.20, 286.78°)
OKLaboklab(58.05% -0.0106 -0.1452)
OKLCHoklch(58.05% 0.146 265.8)
XYZxyz(21.1359, 19.0241, 62.2205)
Luminance0.1903 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175D0 #D0AC51
analogous
#51B5D0 #5175D0 #6D51D0
triadic
#5175D0 #D05175 #75D051
tetradic
#5175D0 #D051B5 #D0AC51 #51D06D
square
#5175D0 #D051B5 #D0AC51 #51D06D
split-complementary
#5175D0 #D06D51 #B5D051
monochromatic
#233F83 #3056B3 #5175D0 #819BDD #B1C1EA

Accessibility & contrast

On white

4.37
#5175D0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#5175D0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175D0
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175D0#FFFFFF#000000##000000
##5175D01.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B7FD3
Deuteranopia (green-blind)
#3873CE
Tritanopia (blue-blind)
#008A98
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5175d0;
/* rgb */ color: rgb(81, 117, 208);
/* oklch */ color: oklch(58.0% 0.146 265.8);
Tailwind
colors: {
  custom: {
    50: '#8d9cdf',
    500: '#5175d0',
    950: '#000000',
  },
}
SCSS
$custom: #5175d0;
$custom-light: #8d9cdf;
$custom-dark: #000000;
JSON
{
  "hex": "#5175d0",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 208
  },
  "hsl": {
    "h": 222.992,
    "s": 57.466,
    "l": 56.667
  },
  "oklch": {
    "l": 0.58045,
    "c": 0.14564,
    "h": 265.8
  },
  "luminance": 0.19026
}

Semantic roles & 50–950 ramp

primary
#5175D0
secondary
#D8CAA4
accent
#B547E1
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5175D0

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

Preview Lab → · Contrast checker → · Palette generator →

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