#5175CE#5175CE

#5175CE is a mid, vivid blue. Relative luminance 0.189; OKLCH L 57.9% C 0.143 H 265.6°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#5175CE
RGBrgb(81, 117, 206)
HSLhsl(223, 56%, 56%)
HSVhsv(223, 61%, 81%)
CMYKcmyk(60.7%, 43.2%, 0%, 19.2%)
CIE-LABlab(50.60, 14.68, -49.98)
CIE-LCHlch(50.60, 52.09, 286.36°)
OKLaboklab(57.92% -0.011 -0.1424)
OKLCHoklch(57.92% 0.143 265.6)
XYZxyz(20.8914, 18.9263, 60.9328)
Luminance0.1893 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175CE #CEAA51
analogous
#51B4CE #5175CE #6C51CE
triadic
#5175CE #CE5175 #75CE51
tetradic
#5175CE #CE51B4 #CEAA51 #51CE6C
square
#5175CE #CE51B4 #CEAA51 #51CE6C
split-complementary
#5175CE #CE6C51 #B4CE51
monochromatic
#243F80 #3256B0 #5175CE #819BDB #B1C1E9

Accessibility & contrast

On white

4.39
#5175CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#5175CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175CE
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175CE#FFFFFF#000000##000000
##5175CE1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D7FD1
Deuteranopia (green-blind)
#3A73CC
Tritanopia (blue-blind)
#008997
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5175ce;
/* rgb */ color: rgb(81, 117, 206);
/* oklch */ color: oklch(57.9% 0.143 265.6);
Tailwind
colors: {
  custom: {
    50: '#8c9cdd',
    500: '#5175ce',
    950: '#000000',
  },
}
SCSS
$custom: #5175ce;
$custom-light: #8c9cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5175ce",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 206
  },
  "hsl": {
    "h": 222.72,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5792,
    "c": 0.14287,
    "h": 265.6
  },
  "luminance": 0.18928
}

Semantic roles & 50–950 ramp

primary
#5175CE
secondary
#D7C8A4
accent
#B448DF
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5175CE

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

Preview Lab → · Contrast checker → · Palette generator →

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