#5170ED#5170ED

#5170ED is a mid, vivid blue. Relative luminance 0.195; OKLCH L 59.0% C 0.191 H 269.3°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#5170ED
RGBrgb(81, 112, 237)
HSLhsl(228, 81%, 62%)
HSVhsv(228, 66%, 93%)
CMYKcmyk(65.8%, 52.7%, 0%, 7.1%)
CIE-LABlab(51.21, 28.38, -66.50)
CIE-LCHlch(51.21, 72.31, 293.11°)
OKLaboklab(59% -0.0024 -0.1911)
OKLCHoklch(59% 0.191 269.3)
XYZxyz(24.4684, 19.4498, 82.5691)
Luminance0.1945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170ED #EDCE51
analogous
#51BEED #5170ED #8051ED
triadic
#5170ED #ED5170 #70ED51
tetradic
#5170ED #ED51BE #EDCE51 #51ED80
square
#5170ED #ED51BE #EDCE51 #51ED80
split-complementary
#5170ED #ED8051 #BEED51
monochromatic
#1232B1 #1A42E7 #5170ED #889EF3 #C0CBF8

Accessibility & contrast

On white

4.29
#5170ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#5170ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5170ED
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170ED#FFFFFF#000000##000000
##5170ED1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1981F1
Deuteranopia (green-blind)
#0073EA
Tritanopia (blue-blind)
#008EA4
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5170ed;
/* rgb */ color: rgb(81, 112, 237);
/* oklch */ color: oklch(59.0% 0.191 269.3);
Tailwind
colors: {
  custom: {
    50: '#9298f4',
    500: '#5170ed',
    950: '#000000',
  },
}
SCSS
$custom: #5170ed;
$custom-light: #9298f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5170ed",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 237
  },
  "hsl": {
    "h": 228.077,
    "s": 81.25,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59001,
    "c": 0.19111,
    "h": 269.3
  },
  "luminance": 0.19452
}

Semantic roles & 50–950 ramp

primary
#5170ED
secondary
#E9DEB0
accent
#B308DE
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5170ED

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

Preview Lab → · Contrast checker → · Palette generator →

#5170ED Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva