#5175F2#5175F2

#5175F2 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.3% C 0.192 H 268.1°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#5175F2
RGBrgb(81, 117, 242)
HSLhsl(227, 86%, 63%)
HSVhsv(227, 67%, 95%)
CMYKcmyk(66.5%, 51.7%, 0%, 5.1%)
CIE-LABlab(52.82, 27.01, -66.69)
CIE-LCHlch(52.82, 71.96, 292.05°)
OKLaboklab(60.32% -0.0064 -0.1916)
OKLCHoklch(60.32% 0.192 268.1)
XYZxyz(25.7761, 20.8802, 86.6591)
Luminance0.2088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175F2 #F2CE51
analogous
#51C5F2 #5175F2 #7D51F2
triadic
#5175F2 #F25175 #75F251
tetradic
#5175F2 #F251C5 #F2CE51 #51F27D
square
#5175F2 #F251C5 #F2CE51 #51F27D
split-complementary
#5175F2 #F27D51 #C5F251
monochromatic
#0E35BB #1848EE #5175F2 #8AA2F6 #C3CFFB

Accessibility & contrast

On white

4.06
#5175F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#5175F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175F2
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175F2#FFFFFF#000000##000000
##5175F21.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2486F6
Deuteranopia (green-blind)
#0077EF
Tritanopia (blue-blind)
#0093A8
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5175f2;
/* rgb */ color: rgb(81, 117, 242);
/* oklch */ color: oklch(60.3% 0.192 268.1);
Tailwind
colors: {
  custom: {
    50: '#929cf7',
    500: '#5175f2',
    950: '#000000',
  },
}
SCSS
$custom: #5175f2;
$custom-light: #929cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#5175f2",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 242
  },
  "hsl": {
    "h": 226.584,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.60322,
    "c": 0.19169,
    "h": 268.1
  },
  "luminance": 0.20883
}

Semantic roles & 50–950 ramp

primary
#5175F2
secondary
#ECDFB3
accent
#B103E3
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5175F2

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

Preview Lab → · Contrast checker → · Palette generator →

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