#5256D2#5256D2

#5256D2 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.2% C 0.187 H 276.4°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#5256D2
RGBrgb(82, 86, 210)
HSLhsl(238, 59%, 57%)
HSVhsv(238, 61%, 82%)
CMYKcmyk(61%, 59%, 0%, 17.6%)
CIE-LABlab(42.92, 35.49, -64.65)
CIE-LCHlch(42.92, 73.75, 298.76°)
OKLaboklab(52.22% 0.0208 -0.1859)
OKLCHoklch(52.22% 0.187 276.4)
XYZxyz(18.4365, 13.1011, 62.5175)
Luminance0.1310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256D2 #D2CE52
analogous
#5296D2 #5256D2 #8E52D2
triadic
#5256D2 #D25256 #56D252
tetradic
#5256D2 #D25296 #D2CE52 #52D28E
square
#5256D2 #D25296 #D2CE52 #52D28E
split-complementary
#5256D2 #D28E52 #96D252
monochromatic
#232687 #3034B7 #5256D2 #8385DF #B3B5EB

Accessibility & contrast

On white

5.80
#5256D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#5256D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256D2
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256D2#FFFFFF#000000##FFFFFF
##5256D21.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD6
Deuteranopia (green-blind)
#0060D0
Tritanopia (blue-blind)
#00748C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5256d2;
/* rgb */ color: rgb(82, 86, 210);
/* oklch */ color: oklch(52.2% 0.187 276.4);
Tailwind
colors: {
  custom: {
    50: '#8f85e1',
    500: '#5256d2',
    950: '#000000',
  },
}
SCSS
$custom: #5256d2;
$custom-light: #8f85e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5256d2",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 210
  },
  "hsl": {
    "h": 238.125,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.52217,
    "c": 0.18706,
    "h": 276.4
  },
  "luminance": 0.13103
}

Semantic roles & 50–950 ramp

primary
#5256D2
secondary
#DAD8A6
accent
#DD46E2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5256D2

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

Preview Lab → · Contrast checker → · Palette generator →

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