#5175EA#5175EA

#5175EA is a mid, vivid blue. Relative luminance 0.204; OKLCH L 59.8% C 0.181 H 267.7°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5175EA
RGBrgb(81, 117, 234)
HSLhsl(226, 78%, 62%)
HSVhsv(226, 65%, 92%)
CMYKcmyk(65.4%, 50%, 0%, 8.2%)
CIE-LABlab(52.30, 24.26, -63.07)
CIE-LCHlch(52.30, 67.57, 291.04°)
OKLaboklab(59.76% -0.0071 -0.1809)
OKLCHoklch(59.76% 0.181 267.7)
XYZxyz(24.6008, 20.4101, 80.4690)
Luminance0.2041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175EA #EAC651
analogous
#51C2EA #5175EA #7951EA
triadic
#5175EA #EA5175 #75EA51
tetradic
#5175EA #EA51C2 #EAC651 #51EA79
square
#5175EA #EA51C2 #EAC651 #51EA79
split-complementary
#5175EA #EA7951 #C2EA51
monochromatic
#1538AC #1B4AE2 #5175EA #88A0F1 #BECCF7

Accessibility & contrast

On white

4.13
#5175EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#5175EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175EA
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175EA#FFFFFF#000000##000000
##5175EA1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3184EE
Deuteranopia (green-blind)
#0076E8
Tritanopia (blue-blind)
#0090A4
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5175ea;
/* rgb */ color: rgb(81, 117, 234);
/* oklch */ color: oklch(59.8% 0.181 267.7);
Tailwind
colors: {
  custom: {
    50: '#919cf1',
    500: '#5175ea',
    950: '#000000',
  },
}
SCSS
$custom: #5175ea;
$custom-light: #919cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#5175ea",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 234
  },
  "hsl": {
    "h": 225.882,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.59762,
    "c": 0.18105,
    "h": 267.7
  },
  "luminance": 0.20412
}

Semantic roles & 50–950 ramp

primary
#5175EA
secondary
#E8DAAF
accent
#AA0BDB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5175EA

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

Preview Lab → · Contrast checker → · Palette generator →

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