#5175CB#5175CB

#5175CB is a mid, vivid blue. Relative luminance 0.188; OKLCH L 57.7% C 0.139 H 265.2°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#5175CB
RGBrgb(81, 117, 203)
HSLhsl(222, 54%, 56%)
HSVhsv(222, 60%, 80%)
CMYKcmyk(60.1%, 42.4%, 0%, 20.4%)
CIE-LABlab(50.43, 13.66, -48.55)
CIE-LCHlch(50.43, 50.43, 285.72°)
OKLaboklab(57.73% -0.0115 -0.1382)
OKLCHoklch(57.73% 0.139 265.2)
XYZxyz(20.5304, 18.7820, 59.0317)
Luminance0.1878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175CB #CBA751
analogous
#51B2CB #5175CB #6A51CB
triadic
#5175CB #CB5175 #75CB51
tetradic
#5175CB #CB51B2 #CBA751 #51CB6A
square
#5175CB #CB51B2 #CBA751 #51CB6A
split-complementary
#5175CB #CB6A51 #B2CB51
monochromatic
#253F7C #3357AC #5175CB #809AD9 #AFC0E7

Accessibility & contrast

On white

4.41
#5175CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#5175CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175CB
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175CB#FFFFFF#000000##000000
##5175CB1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7ECE
Deuteranopia (green-blind)
#3D73C9
Tritanopia (blue-blind)
#008896
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5175cb;
/* rgb */ color: rgb(81, 117, 203);
/* oklch */ color: oklch(57.7% 0.139 265.2);
Tailwind
colors: {
  custom: {
    50: '#8c9cdb',
    500: '#5175cb',
    950: '#000000',
  },
}
SCSS
$custom: #5175cb;
$custom-light: #8c9cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5175cb",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 203
  },
  "hsl": {
    "h": 222.295,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.57734,
    "c": 0.1387,
    "h": 265.2
  },
  "luminance": 0.18784
}

Semantic roles & 50–950 ramp

primary
#5175CB
secondary
#D5C6A3
accent
#B24ADD
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5175CB

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

Preview Lab → · Contrast checker → · Palette generator →

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