#5256D8#5256D8

#5256D8 is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.7% C 0.195 H 276.1°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#5256D8
RGBrgb(82, 86, 216)
HSLhsl(238, 63%, 58%)
HSVhsv(238, 62%, 85%)
CMYKcmyk(62%, 60.2%, 0%, 15.3%)
CIE-LABlab(43.37, 37.47, -67.35)
CIE-LCHlch(43.37, 77.07, 299.09°)
OKLaboklab(52.69% 0.0206 -0.1938)
OKLCHoklch(52.69% 0.195 276.1)
XYZxyz(19.1981, 13.4057, 66.5283)
Luminance0.1341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256D8 #D8D452
analogous
#5299D8 #5256D8 #9152D8
triadic
#5256D8 #D85256 #56D852
tetradic
#5256D8 #D85299 #D8D452 #52D891
square
#5256D8 #D85299 #D8D452 #52D891
split-complementary
#5256D8 #D89152 #99D852
monochromatic
#20248F #2C30C1 #5256D8 #8487E3 #B6B8EF

Accessibility & contrast

On white

5.70
#5256D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5256D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256D8
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256D8#FFFFFF#000000##FFFFFF
##5256D81.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDC
Deuteranopia (green-blind)
#0061D5
Tritanopia (blue-blind)
#00768F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5256d8;
/* rgb */ color: rgb(82, 86, 216);
/* oklch */ color: oklch(52.7% 0.195 276.1);
Tailwind
colors: {
  custom: {
    50: '#9086e5',
    500: '#5256d8',
    950: '#000000',
  },
}
SCSS
$custom: #5256d8;
$custom-light: #9086e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5256d8",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 216
  },
  "hsl": {
    "h": 238.209,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.52693,
    "c": 0.19493,
    "h": 276.1
  },
  "luminance": 0.13407
}

Semantic roles & 50–950 ramp

primary
#5256D8
secondary
#DDDCA8
accent
#E142E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5256D8

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

Preview Lab → · Contrast checker → · Palette generator →

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