#5250D2#5250D2

#5250D2 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.2% C 0.194 H 277.7°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5250D2
RGBrgb(82, 80, 210)
HSLhsl(241, 59%, 57%)
HSVhsv(241, 62%, 82%)
CMYKcmyk(61%, 61.9%, 0%, 17.6%)
CIE-LABlab(41.51, 39.14, -66.95)
CIE-LCHlch(41.51, 77.55, 300.31°)
OKLaboklab(51.18% 0.0261 -0.1927)
OKLCHoklch(51.18% 0.194 277.7)
XYZxyz(17.9775, 12.1829, 62.3645)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5250D2 #D0D250
analogous
#508FD2 #5250D2 #9350D2
triadic
#5250D2 #D25250 #50D252
tetradic
#5250D2 #D2508F #D0D250 #50D293
square
#5250D2 #D2508F #D0D250 #50D293
split-complementary
#5250D2 #D29350 #8FD250
monochromatic
#242285 #312FB6 #5250D2 #8281DF #B2B1EB

Accessibility & contrast

On white

6.11
#5250D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5250D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5250D2
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5250D2#FFFFFF#000000##FFFFFF
##5250D21.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#005CCF
Tritanopia (blue-blind)
#007089
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5250d2;
/* rgb */ color: rgb(82, 80, 210);
/* oklch */ color: oklch(51.2% 0.194 277.7);
Tailwind
colors: {
  custom: {
    50: '#8f81e1',
    500: '#5250d2',
    950: '#000000',
  },
}
SCSS
$custom: #5250d2;
$custom-light: #8f81e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5250d2",
  "rgb": {
    "r": 82,
    "g": 80,
    "b": 210
  },
  "hsl": {
    "h": 240.923,
    "s": 59.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51179,
    "c": 0.19444,
    "h": 277.7
  },
  "luminance": 0.12184
}

Semantic roles & 50–950 ramp

primary
#5250D2
secondary
#D9D9A4
accent
#E246E0
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5250D2

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

Preview Lab → · Contrast checker → · Palette generator →

#5250D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva