#5175CD#5175CD

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

Color values

HEX#5175CD
RGBrgb(81, 117, 205)
HSLhsl(223, 55%, 56%)
HSVhsv(223, 60%, 80%)
CMYKcmyk(60.5%, 42.9%, 0%, 19.6%)
CIE-LABlab(50.54, 14.34, -49.51)
CIE-LCHlch(50.54, 51.54, 286.15°)
OKLaboklab(57.86% -0.0112 -0.141)
OKLCHoklch(57.86% 0.141 265.5)
XYZxyz(20.7703, 18.8779, 60.2950)
Luminance0.1888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175CD #CDA951
analogous
#51B3CD #5175CD #6B51CD
triadic
#5175CD #CD5175 #75CD51
tetradic
#5175CD #CD51B3 #CDA951 #51CD6B
square
#5175CD #CD51B3 #CDA951 #51CD6B
split-complementary
#5175CD #CD6B51 #B3CD51
monochromatic
#253F7F #3256AF #5175CD #819BDB #B0C0E8

Accessibility & contrast

On white

4.40
#5175CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#5175CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175CD
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175CD#FFFFFF#000000##000000
##5175CD1.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5175cd;
/* rgb */ color: rgb(81, 117, 205);
/* oklch */ color: oklch(57.9% 0.141 265.5);
Tailwind
colors: {
  custom: {
    50: '#8c9cdd',
    500: '#5175cd',
    950: '#000000',
  },
}
SCSS
$custom: #5175cd;
$custom-light: #8c9cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5175cd",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 205
  },
  "hsl": {
    "h": 222.581,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57858,
    "c": 0.14148,
    "h": 265.5
  },
  "luminance": 0.1888
}

Semantic roles & 50–950 ramp

primary
#5175CD
secondary
#D7C8A3
accent
#B349DF
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5175CD

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

Preview Lab → · Contrast checker → · Palette generator →

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