#5175EE#5175EE

#5175EE is a mid, vivid blue. Relative luminance 0.206; OKLCH L 60.0% C 0.186 H 267.9°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#5175EE
RGBrgb(81, 117, 238)
HSLhsl(226, 82%, 63%)
HSVhsv(226, 66%, 93%)
CMYKcmyk(66%, 50.8%, 0%, 6.7%)
CIE-LABlab(52.56, 25.63, -64.89)
CIE-LCHlch(52.56, 69.77, 291.56°)
OKLaboklab(60.04% -0.0067 -0.1863)
OKLCHoklch(60.04% 0.186 267.9)
XYZxyz(25.1819, 20.6426, 83.5297)
Luminance0.2064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175EE #EECA51
analogous
#51C4EE #5175EE #7B51EE
triadic
#5175EE #EE5175 #75EE51
tetradic
#5175EE #EE51C4 #EECA51 #51EE7B
square
#5175EE #EE51C4 #EECA51 #51EE7B
split-complementary
#5175EE #EE7B51 #C4EE51
monochromatic
#1137B3 #1949E9 #5175EE #89A1F3 #C1CDF9

Accessibility & contrast

On white

4.09
#5175EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#5175EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175EE
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175EE#FFFFFF#000000##000000
##5175EE1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B85F2
Deuteranopia (green-blind)
#0077EC
Tritanopia (blue-blind)
#0092A6
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5175ee;
/* rgb */ color: rgb(81, 117, 238);
/* oklch */ color: oklch(60.0% 0.186 267.9);
Tailwind
colors: {
  custom: {
    50: '#929cf4',
    500: '#5175ee',
    950: '#000000',
  },
}
SCSS
$custom: #5175ee;
$custom-light: #929cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#5175ee",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 238
  },
  "hsl": {
    "h": 226.242,
    "s": 82.199,
    "l": 62.549
  },
  "oklch": {
    "l": 0.6004,
    "c": 0.18638,
    "h": 267.9
  },
  "luminance": 0.20645
}

Semantic roles & 50–950 ramp

primary
#5175EE
secondary
#EADDB1
accent
#AD07DF
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5175EE

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

Preview Lab → · Contrast checker → · Palette generator →

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