#5257E2#5257E2

#5257E2 is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 53.7% C 0.207 H 275.4°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#5257E2
RGBrgb(82, 87, 226)
HSLhsl(238, 71%, 60%)
HSVhsv(238, 64%, 89%)
CMYKcmyk(63.7%, 61.5%, 0%, 11.4%)
CIE-LABlab(44.38, 40.15, -71.41)
CIE-LCHlch(44.38, 81.92, 299.35°)
OKLaboklab(53.68% 0.0194 -0.2057)
OKLCHoklch(53.68% 0.207 275.4)
XYZxyz(20.6108, 14.0995, 73.5721)
Luminance0.1410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5257E2 #E2DD52
analogous
#529FE2 #5257E2 #9552E2
triadic
#5257E2 #E25257 #57E252
tetradic
#5257E2 #E2529F #E2DD52 #52E295
square
#5257E2 #E2529F #E2DD52 #52E295
split-complementary
#5257E2 #E29552 #9FE252
monochromatic
#1B1F9F #232AD3 #5257E2 #868AEB #BBBDF4

Accessibility & contrast

On white

5.50
#5257E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#5257E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5257E2
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5257E2#FFFFFF#000000##FFFFFF
##5257E21.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE6
Deuteranopia (green-blind)
#0063DF
Tritanopia (blue-blind)
#007A94
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5257e2;
/* rgb */ color: rgb(82, 87, 226);
/* oklch */ color: oklch(53.7% 0.207 275.4);
Tailwind
colors: {
  custom: {
    50: '#9286ec',
    500: '#5257e2',
    950: '#000000',
  },
}
SCSS
$custom: #5257e2;
$custom-light: #9286ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5257e2",
  "rgb": {
    "r": 82,
    "g": 87,
    "b": 226
  },
  "hsl": {
    "h": 237.917,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.53676,
    "c": 0.20665,
    "h": 275.4
  },
  "luminance": 0.14101
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5257E2

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

Preview Lab → · Contrast checker → · Palette generator →

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