#5256DC#5256DC

#5256DC is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 53.0% C 0.200 H 275.9°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#5256DC
RGBrgb(82, 86, 220)
HSLhsl(238, 66%, 59%)
HSVhsv(238, 63%, 86%)
CMYKcmyk(62.7%, 60.9%, 0%, 13.7%)
CIE-LABlab(43.68, 38.78, -69.14)
CIE-LCHlch(43.68, 79.27, 299.29°)
OKLaboklab(53.02% 0.0205 -0.1991)
OKLCHoklch(53.02% 0.2 275.9)
XYZxyz(19.7215, 13.6151, 69.2850)
Luminance0.1362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256DC #DCD852
analogous
#529BDC #5256DC #9352DC
triadic
#5256DC #DC5256 #56DC52
tetradic
#5256DC #DC529B #DCD852 #52DC93
square
#5256DC #DC529B #DCD852 #52DC93
split-complementary
#5256DC #DC9352 #9BDC52
monochromatic
#1E2295 #292DC8 #5256DC #8588E6 #B8B9F1

Accessibility & contrast

On white

5.64
#5256DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#5256DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256DC
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256DC#FFFFFF#000000##FFFFFF
##5256DC1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE0
Deuteranopia (green-blind)
#0061D9
Tritanopia (blue-blind)
#007791
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5256dc;
/* rgb */ color: rgb(82, 86, 220);
/* oklch */ color: oklch(53.0% 0.200 275.9);
Tailwind
colors: {
  custom: {
    50: '#9186e8',
    500: '#5256dc',
    950: '#000000',
  },
}
SCSS
$custom: #5256dc;
$custom-light: #9186e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5256dc",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 220
  },
  "hsl": {
    "h": 238.261,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.53016,
    "c": 0.20013,
    "h": 275.9
  },
  "luminance": 0.13617
}

Semantic roles & 50–950 ramp

primary
#5256DC
secondary
#E0DEAA
accent
#E43FE9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5256DC

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

Preview Lab → · Contrast checker → · Palette generator →

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