#5257E1#5257E1

#5257E1 is a mid, highly saturated blue. Relative luminance 0.140; OKLCH L 53.6% C 0.205 H 275.4°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#5257E1
RGBrgb(82, 87, 225)
HSLhsl(238, 70%, 60%)
HSVhsv(238, 64%, 88%)
CMYKcmyk(63.6%, 61.3%, 0%, 11.8%)
CIE-LABlab(44.30, 39.83, -70.97)
CIE-LCHlch(44.30, 81.38, 299.30°)
OKLaboklab(53.59% 0.0194 -0.2044)
OKLCHoklch(53.59% 0.205 275.4)
XYZxyz(20.4740, 14.0447, 72.8515)
Luminance0.1405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5257E1 #E1DC52
analogous
#529FE1 #5257E1 #9452E1
triadic
#5257E1 #E15257 #57E152
tetradic
#5257E1 #E1529F #E1DC52 #52E194
square
#5257E1 #E1529F #E1DC52 #52E194
split-complementary
#5257E1 #E19452 #9FE152
monochromatic
#1B209D #242AD1 #5257E1 #868AEA #BABCF3

Accessibility & contrast

On white

5.51
#5257E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#5257E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5257E1
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5257E1#FFFFFF#000000##FFFFFF
##5257E11.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE5
Deuteranopia (green-blind)
#0062DE
Tritanopia (blue-blind)
#007A94
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5257e1;
/* rgb */ color: rgb(82, 87, 225);
/* oklch */ color: oklch(53.6% 0.205 275.4);
Tailwind
colors: {
  custom: {
    50: '#9286eb',
    500: '#5257e1',
    950: '#000000',
  },
}
SCSS
$custom: #5257e1;
$custom-light: #9286eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5257e1",
  "rgb": {
    "r": 82,
    "g": 87,
    "b": 225
  },
  "hsl": {
    "h": 237.902,
    "s": 70.443,
    "l": 60.196
  },
  "oklch": {
    "l": 0.53594,
    "c": 0.20537,
    "h": 275.4
  },
  "luminance": 0.14046
}

Semantic roles & 50–950 ramp

primary
#5257E1
secondary
#E3E1AC
accent
#CC13D2
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5257E1

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

Preview Lab → · Contrast checker → · Palette generator →

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