#5251FF#5251FF

#5251FF is a mid, highly saturated blue. Relative luminance 0.149; OKLCH L 55.2% C 0.249 H 274.8°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#5251FF
RGBrgb(82, 81, 255)
HSLhsl(240, 100%, 66%)
HSVhsv(240, 68%, 100%)
CMYKcmyk(67.8%, 68.2%, 0%, 0%)
CIE-LABlab(45.49, 53.01, -85.87)
CIE-LCHlch(45.49, 100.92, 301.69°)
OKLaboklab(55.23% 0.0209 -0.2481)
OKLCHoklch(55.23% 0.249 274.8)
XYZxyz(24.4661, 14.8964, 96.1743)
Luminance0.1490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251FF #FEFF51
analogous
#51A7FF #5251FF #A951FF
triadic
#5251FF #FF5251 #51FF52
tetradic
#5251FF #FF51A7 #FEFF51 #51FFA9
square
#5251FF #FF51A7 #FEFF51 #51FFA9
split-complementary
#5251FF #FFA951 #A7FF51
monochromatic
#0100D6 #1514FF #5251FF #8F8EFF #CCCBFF

Accessibility & contrast

On white

5.28
#5251FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#5251FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251FF
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251FF#FFFFFF#000000##FFFFFF
##5251FF1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074FF
Deuteranopia (green-blind)
#0064FC
Tritanopia (blue-blind)
#0080A2
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5251ff;
/* rgb */ color: rgb(82, 81, 255);
/* oklch */ color: oklch(55.2% 0.249 274.8);
Tailwind
colors: {
  custom: {
    50: '#9883ff',
    500: '#5251ff',
    950: '#000000',
  },
}
SCSS
$custom: #5251ff;
$custom-light: #9883ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5251ff",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 255
  },
  "hsl": {
    "h": 240.345,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.55232,
    "c": 0.24902,
    "h": 274.8
  },
  "luminance": 0.14899
}

Semantic roles & 50–950 ramp

primary
#5251FF
secondary
#F2F3B9
accent
#E600E4
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B18
muted
#7F7C86

Preview Lab

Preview with #5251FF

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

Preview Lab → · Contrast checker → · Palette generator →

#5251FF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva