#5257E4#5257E4

#5257E4 is a mid, highly saturated blue. Relative luminance 0.142; OKLCH L 53.8% C 0.209 H 275.3°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#5257E4
RGBrgb(82, 87, 228)
HSLhsl(238, 73%, 61%)
HSVhsv(238, 64%, 89%)
CMYKcmyk(64%, 61.8%, 0%, 10.6%)
CIE-LABlab(44.53, 40.81, -72.28)
CIE-LCHlch(44.53, 83.01, 299.45°)
OKLaboklab(53.84% 0.0193 -0.2083)
OKLCHoklch(53.84% 0.209 275.3)
XYZxyz(20.8869, 14.2099, 75.0258)
Luminance0.1421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5257E4 #E4DF52
analogous
#52A0E4 #5257E4 #9652E4
triadic
#5257E4 #E45257 #57E452
tetradic
#5257E4 #E452A0 #E4DF52 #52E496
square
#5257E4 #E452A0 #E4DF52 #52E496
split-complementary
#5257E4 #E49652 #A0E452
monochromatic
#191EA2 #2228D7 #5257E4 #878AEC #BCBEF5

Accessibility & contrast

On white

5.47
#5257E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#5257E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5257E4
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5257E4#FFFFFF#000000##FFFFFF
##5257E41.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E9
Deuteranopia (green-blind)
#0063E1
Tritanopia (blue-blind)
#007B95
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5257e4;
/* rgb */ color: rgb(82, 87, 228);
/* oklch */ color: oklch(53.8% 0.209 275.3);
Tailwind
colors: {
  custom: {
    50: '#9286ee',
    500: '#5257e4',
    950: '#000000',
  },
}
SCSS
$custom: #5257e4;
$custom-light: #9286ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5257e4",
  "rgb": {
    "r": 82,
    "g": 87,
    "b": 228
  },
  "hsl": {
    "h": 237.945,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.5384,
    "c": 0.20921,
    "h": 275.3
  },
  "luminance": 0.14212
}

Semantic roles & 50–950 ramp

primary
#5257E4
secondary
#E5E3AD
accent
#CE10D5
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5257E4

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

Preview Lab → · Contrast checker → · Palette generator →

#5257E4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva