#5257EB#5257EB

#5257EB is a mid, highly saturated blue. Relative luminance 0.146; OKLCH L 54.4% C 0.218 H 275.0°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#5257EB
RGBrgb(82, 87, 235)
HSLhsl(238, 79%, 62%)
HSVhsv(238, 65%, 92%)
CMYKcmyk(65.1%, 63%, 0%, 7.8%)
CIE-LABlab(45.09, 43.11, -75.33)
CIE-LCHlch(45.09, 86.79, 299.78°)
OKLaboklab(54.42% 0.0188 -0.2172)
OKLCHoklch(54.42% 0.218 275)
XYZxyz(21.8783, 14.6065, 80.2475)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5257EB #EBE652
analogous
#52A4EB #5257EB #9952EB
triadic
#5257EB #EB5257 #57EB52
tetradic
#5257EB #EB52A4 #EBE652 #52EB99
square
#5257EB #EB52A4 #EBE652 #52EB99
split-complementary
#5257EB #EB9952 #A4EB52
monochromatic
#1419AE #1B22E5 #5257EB #898CF1 #C0C2F8

Accessibility & contrast

On white

5.35
#5257EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#5257EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5257EB
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5257EB#FFFFFF#000000##FFFFFF
##5257EB1.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F0
Deuteranopia (green-blind)
#0064E8
Tritanopia (blue-blind)
#007D99
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5257eb;
/* rgb */ color: rgb(82, 87, 235);
/* oklch */ color: oklch(54.4% 0.218 275.0);
Tailwind
colors: {
  custom: {
    50: '#9387f3',
    500: '#5257eb',
    950: '#000000',
  },
}
SCSS
$custom: #5257eb;
$custom-light: #9387f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5257eb",
  "rgb": {
    "r": 82,
    "g": 87,
    "b": 235
  },
  "hsl": {
    "h": 238.039,
    "s": 79.275,
    "l": 62.157
  },
  "oklch": {
    "l": 0.54422,
    "c": 0.21807,
    "h": 275
  },
  "luminance": 0.14608
}

Semantic roles & 50–950 ramp

primary
#5257EB
secondary
#E8E7B0
accent
#D50ADC
background
#F9F8FF
surface
#F2EFFE
border
#CCCAD6
text
#0F0B17
muted
#7E7C85

Preview Lab

Preview with #5257EB

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

Preview Lab → · Contrast checker → · Palette generator →

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