#5257EF#5257EF

#5257EF is a mid, highly saturated blue. Relative luminance 0.148; OKLCH L 54.8% C 0.223 H 274.8°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#5257EF
RGBrgb(82, 87, 239)
HSLhsl(238, 83%, 63%)
HSVhsv(238, 66%, 94%)
CMYKcmyk(65.7%, 63.6%, 0%, 6.3%)
CIE-LABlab(45.41, 44.41, -77.05)
CIE-LCHlch(45.41, 88.93, 299.96°)
OKLaboklab(54.76% 0.0186 -0.2223)
OKLCHoklch(54.76% 0.223 274.8)
XYZxyz(22.4627, 14.8402, 83.3253)
Luminance0.1484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5257EF #EFEA52
analogous
#52A6EF #5257EF #9B52EF
triadic
#5257EF #EF5257 #57EF52
tetradic
#5257EF #EF52A6 #EFEA52 #52EF9B
square
#5257EF #EF52A6 #EFEA52 #52EF9B
split-complementary
#5257EF #EF9B52 #A6EF52
monochromatic
#1116B6 #1A21EA #5257EF #8A8DF4 #C2C4F9

Accessibility & contrast

On white

5.29
#5257EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#5257EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5257EF
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5257EF#FFFFFF#000000##FFFFFF
##5257EF1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F4
Deuteranopia (green-blind)
#0064EC
Tritanopia (blue-blind)
#007E9B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5257ef;
/* rgb */ color: rgb(82, 87, 239);
/* oklch */ color: oklch(54.8% 0.223 274.8);
Tailwind
colors: {
  custom: {
    50: '#9487f5',
    500: '#5257ef',
    950: '#000000',
  },
}
SCSS
$custom: #5257ef;
$custom-light: #9487f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5257ef",
  "rgb": {
    "r": 82,
    "g": 87,
    "b": 239
  },
  "hsl": {
    "h": 238.089,
    "s": 83.069,
    "l": 62.941
  },
  "oklch": {
    "l": 0.54759,
    "c": 0.22307,
    "h": 274.8
  },
  "luminance": 0.14842
}

Semantic roles & 50–950 ramp

primary
#5257EF
secondary
#EBE9B2
accent
#D906DF
background
#FAF8FF
surface
#F3EFFF
border
#CDCAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5257EF

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

Preview Lab → · Contrast checker → · Palette generator →

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