#5256E2#5256E2

#5256E2 is a mid, highly saturated blue. Relative luminance 0.139; OKLCH L 53.5% C 0.208 H 275.6°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#5256E2
RGBrgb(82, 86, 226)
HSLhsl(238, 71%, 60%)
HSVhsv(238, 64%, 89%)
CMYKcmyk(63.7%, 61.9%, 0%, 11.4%)
CIE-LABlab(44.14, 40.76, -71.78)
CIE-LCHlch(44.14, 82.55, 299.59°)
OKLaboklab(53.51% 0.0202 -0.2068)
OKLCHoklch(53.51% 0.208 275.6)
XYZxyz(20.5304, 13.9387, 73.5453)
Luminance0.1394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256E2 #E2DE52
analogous
#529EE2 #5256E2 #9652E2
triadic
#5256E2 #E25256 #56E252
tetradic
#5256E2 #E2529E #E2DE52 #52E296
square
#5256E2 #E2529E #E2DE52 #52E296
split-complementary
#5256E2 #E29652 #9EE252
monochromatic
#1B1E9F #2328D3 #5256E2 #8689EB #BBBCF4

Accessibility & contrast

On white

5.54
#5256E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#5256E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256E2
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256E2#FFFFFF#000000##FFFFFF
##5256E21.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE7
Deuteranopia (green-blind)
#0062DF
Tritanopia (blue-blind)
#007994
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5256e2;
/* rgb */ color: rgb(82, 86, 226);
/* oklch */ color: oklch(53.5% 0.208 275.6);
Tailwind
colors: {
  custom: {
    50: '#9286ec',
    500: '#5256e2',
    950: '#000000',
  },
}
SCSS
$custom: #5256e2;
$custom-light: #9286ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5256e2",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 226
  },
  "hsl": {
    "h": 238.333,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.53507,
    "c": 0.20783,
    "h": 275.6
  },
  "luminance": 0.1394
}

Semantic roles & 50–950 ramp

primary
#5256E2
secondary
#E3E2AC
accent
#CE12D3
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5256E2

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

Preview Lab → · Contrast checker → · Palette generator →

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