#5256E8#5256E8

#5256E8 is a mid, highly saturated blue. Relative luminance 0.143; OKLCH L 54.0% C 0.215 H 275.3°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#5256E8
RGBrgb(82, 86, 232)
HSLhsl(238, 77%, 62%)
HSVhsv(238, 65%, 91%)
CMYKcmyk(64.7%, 62.9%, 0%, 9%)
CIE-LABlab(44.62, 42.72, -74.40)
CIE-LCHlch(44.62, 85.79, 299.87°)
OKLaboklab(54.01% 0.0198 -0.2145)
OKLCHoklch(54.01% 0.215 275.3)
XYZxyz(21.3682, 14.2738, 77.9573)
Luminance0.1428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256E8 #E8E452
analogous
#52A1E8 #5256E8 #9952E8
triadic
#5256E8 #E85256 #56E852
tetradic
#5256E8 #E852A1 #E8E452 #52E899
square
#5256E8 #E852A1 #E8E452 #52E899
split-complementary
#5256E8 #E89952 #A1E852
monochromatic
#161AA9 #1E23DF #5256E8 #888BEF #BEC0F6

Accessibility & contrast

On white

5.45
#5256E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#5256E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256E8
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256E8#FFFFFF#000000##FFFFFF
##5256E81.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070ED
Deuteranopia (green-blind)
#0063E5
Tritanopia (blue-blind)
#007B97
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5256e8;
/* rgb */ color: rgb(82, 86, 232);
/* oklch */ color: oklch(54.0% 0.215 275.3);
Tailwind
colors: {
  custom: {
    50: '#9386f0',
    500: '#5256e8',
    950: '#000000',
  },
}
SCSS
$custom: #5256e8;
$custom-light: #9386f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5256e8",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 232
  },
  "hsl": {
    "h": 238.4,
    "s": 76.531,
    "l": 61.569
  },
  "oklch": {
    "l": 0.54005,
    "c": 0.21544,
    "h": 275.3
  },
  "luminance": 0.14276
}

Semantic roles & 50–950 ramp

primary
#5256E8
secondary
#E7E5AF
accent
#D30DD9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0B17
muted
#7E7C85

Preview Lab

Preview with #5256E8

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

Preview Lab → · Contrast checker → · Palette generator →

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