#5256E4#5256E4

#5256E4 is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 53.7% C 0.210 H 275.5°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#5256E4
RGBrgb(82, 86, 228)
HSLhsl(238, 73%, 61%)
HSVhsv(238, 64%, 89%)
CMYKcmyk(64%, 62.3%, 0%, 10.6%)
CIE-LABlab(44.30, 41.41, -72.66)
CIE-LCHlch(44.30, 83.63, 299.68°)
OKLaboklab(53.67% 0.02 -0.2094)
OKLCHoklch(53.67% 0.21 275.5)
XYZxyz(20.8065, 14.0491, 74.9990)
Luminance0.1405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256E4 #E4E052
analogous
#529FE4 #5256E4 #9752E4
triadic
#5256E4 #E45256 #56E452
tetradic
#5256E4 #E4529F #E4E052 #52E497
square
#5256E4 #E4529F #E4E052 #52E497
split-complementary
#5256E4 #E49752 #9FE452
monochromatic
#191DA2 #2227D7 #5256E4 #878AEC #BCBDF5

Accessibility & contrast

On white

5.51
#5256E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#5256E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256E4
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256E4#FFFFFF#000000##FFFFFF
##5256E41.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)
#006FE9
Deuteranopia (green-blind)
#0062E1
Tritanopia (blue-blind)
#007A95
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5256e4;
/* rgb */ color: rgb(82, 86, 228);
/* oklch */ color: oklch(53.7% 0.210 275.5);
Tailwind
colors: {
  custom: {
    50: '#9286ee',
    500: '#5256e4',
    950: '#000000',
  },
}
SCSS
$custom: #5256e4;
$custom-light: #9286ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5256e4",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 228
  },
  "hsl": {
    "h": 238.356,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.53672,
    "c": 0.21038,
    "h": 275.5
  },
  "luminance": 0.14051
}

Semantic roles & 50–950 ramp

primary
#5256E4
secondary
#E5E3AD
accent
#D010D5
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5256E4

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

Preview Lab → · Contrast checker → · Palette generator →

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