#5251E0#5251E0

#5251E0 is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.5% C 0.211 H 276.6°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5251E0
RGBrgb(82, 81, 224)
HSLhsl(240, 70%, 60%)
HSVhsv(240, 64%, 88%)
CMYKcmyk(63.4%, 63.8%, 0%, 12.2%)
CIE-LABlab(42.85, 43.09, -72.76)
CIE-LCHlch(42.85, 84.56, 300.64°)
OKLaboklab(52.51% 0.0243 -0.2097)
OKLCHoklch(52.51% 0.211 276.6)
XYZxyz(19.8723, 13.0589, 71.9799)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251E0 #DFE051
analogous
#5197E0 #5251E0 #9A51E0
triadic
#5251E0 #E05251 #51E052
tetradic
#5251E0 #E05197 #DFE051 #51E09A
square
#5251E0 #E05197 #DFE051 #51E09A
split-complementary
#5251E0 #E09A51 #97E051
monochromatic
#1D1C9B #2625CF #5251E0 #8685E9 #B9B9F3

Accessibility & contrast

On white

5.81
#5251E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5251E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251E0
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251E0#FFFFFF#000000##FFFFFF
##5251E01.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE5
Deuteranopia (green-blind)
#005FDD
Tritanopia (blue-blind)
#007691
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5251e0;
/* rgb */ color: rgb(82, 81, 224);
/* oklch */ color: oklch(52.5% 0.211 276.6);
Tailwind
colors: {
  custom: {
    50: '#9282eb',
    500: '#5251e0',
    950: '#000000',
  },
}
SCSS
$custom: #5251e0;
$custom-light: #9282eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5251e0",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 224
  },
  "hsl": {
    "h": 240.42,
    "s": 69.756,
    "l": 59.804
  },
  "oklch": {
    "l": 0.52511,
    "c": 0.21114,
    "h": 276.6
  },
  "luminance": 0.13061
}

Semantic roles & 50–950 ramp

primary
#5251E0
secondary
#E2E2AB
accent
#ED3BEB
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5251E0

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

Preview Lab → · Contrast checker → · Palette generator →

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