#5175D9#5175D9

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

Color values

HEX#5175D9
RGBrgb(81, 117, 217)
HSLhsl(224, 64%, 58%)
HSVhsv(224, 63%, 85%)
CMYKcmyk(62.7%, 46.1%, 0%, 14.9%)
CIE-LABlab(51.24, 18.42, -55.20)
CIE-LCHlch(51.24, 58.19, 288.46°)
OKLaboklab(58.62% -0.0092 -0.1578)
OKLCHoklch(58.62% 0.158 266.7)
XYZxyz(22.2747, 19.4797, 68.2183)
Luminance0.1948 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175D9 #D9B551
analogous
#51B9D9 #5175D9 #7151D9
triadic
#5175D9 #D95175 #75D951
tetradic
#5175D9 #D951B9 #D9B551 #51D971
square
#5175D9 #D951B9 #D9B551 #51D971
split-complementary
#5175D9 #D97151 #B9D951
monochromatic
#1F3D90 #2A53C2 #5175D9 #839DE4 #B5C5EF

Accessibility & contrast

On white

4.29
#5175D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#5175D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175D9
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175D9#FFFFFF#000000##000000
##5175D91.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4481DD
Deuteranopia (green-blind)
#2C74D7
Tritanopia (blue-blind)
#008C9C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5175d9;
/* rgb */ color: rgb(81, 117, 217);
/* oklch */ color: oklch(58.6% 0.158 266.7);
Tailwind
colors: {
  custom: {
    50: '#8e9ce5',
    500: '#5175d9',
    950: '#000000',
  },
}
SCSS
$custom: #5175d9;
$custom-light: #8e9ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#5175d9",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 217
  },
  "hsl": {
    "h": 224.118,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.5862,
    "c": 0.15804,
    "h": 266.7
  },
  "luminance": 0.19482
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5175D9

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

Preview Lab → · Contrast checker → · Palette generator →

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