#5251E3#5251E3

#5251E3 is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.8% C 0.215 H 276.4°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#5251E3
RGBrgb(82, 81, 227)
HSLhsl(240, 72%, 60%)
HSVhsv(240, 64%, 89%)
CMYKcmyk(63.9%, 64.3%, 0%, 11%)
CIE-LABlab(43.10, 44.06, -74.06)
CIE-LCHlch(43.10, 86.18, 300.75°)
OKLaboklab(52.77% 0.024 -0.2136)
OKLCHoklch(52.77% 0.215 276.4)
XYZxyz(20.2827, 13.2231, 74.1416)
Luminance0.1323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251E3 #E2E351
analogous
#5199E3 #5251E3 #9B51E3
triadic
#5251E3 #E35251 #51E352
tetradic
#5251E3 #E35199 #E2E351 #51E39B
square
#5251E3 #E35199 #E2E351 #51E39B
split-complementary
#5251E3 #E39B51 #99E351
monochromatic
#1B1AA0 #2322D5 #5251E3 #8686EB #BBBAF4

Accessibility & contrast

On white

5.76
#5251E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#5251E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251E3
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251E3#FFFFFF#000000##FFFFFF
##5251E31.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE8
Deuteranopia (green-blind)
#005FE0
Tritanopia (blue-blind)
#007793
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5251e3;
/* rgb */ color: rgb(82, 81, 227);
/* oklch */ color: oklch(52.8% 0.215 276.4);
Tailwind
colors: {
  custom: {
    50: '#9282ed',
    500: '#5251e3',
    950: '#000000',
  },
}
SCSS
$custom: #5251e3;
$custom-light: #9282ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5251e3",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 227
  },
  "hsl": {
    "h": 240.411,
    "s": 72.277,
    "l": 60.392
  },
  "oklch": {
    "l": 0.52766,
    "c": 0.2149,
    "h": 276.4
  },
  "luminance": 0.13225
}

Semantic roles & 50–950 ramp

primary
#5251E3
secondary
#E3E4AC
accent
#D411D3
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5251E3

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

Preview Lab → · Contrast checker → · Palette generator →

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