#5256CE#5256CE

#5256CE is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.9% C 0.182 H 276.6°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#5256CE
RGBrgb(82, 86, 206)
HSLhsl(238, 56%, 56%)
HSVhsv(238, 60%, 81%)
CMYKcmyk(60.2%, 58.3%, 0%, 19.2%)
CIE-LABlab(42.62, 34.17, -62.83)
CIE-LCHlch(42.62, 71.52, 298.54°)
OKLaboklab(51.9% 0.0208 -0.1806)
OKLCHoklch(51.9% 0.182 276.6)
XYZxyz(17.9444, 12.9043, 59.9257)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256CE #CECA52
analogous
#5294CE #5256CE #8C52CE
triadic
#5256CE #CE5256 #56CE52
tetradic
#5256CE #CE5294 #CECA52 #52CE8C
square
#5256CE #CE5294 #CECA52 #52CE8C
split-complementary
#5256CE #CE8C52 #94CE52
monochromatic
#252881 #3236B1 #5256CE #8285DC #B1B3E9

Accessibility & contrast

On white

5.86
#5256CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5256CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256CE
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256CE#FFFFFF#000000##FFFFFF
##5256CE1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD2
Deuteranopia (green-blind)
#005FCC
Tritanopia (blue-blind)
#00738A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5256ce;
/* rgb */ color: rgb(82, 86, 206);
/* oklch */ color: oklch(51.9% 0.182 276.6);
Tailwind
colors: {
  custom: {
    50: '#8e85de',
    500: '#5256ce',
    950: '#000000',
  },
}
SCSS
$custom: #5256ce;
$custom-light: #8e85de;
$custom-dark: #000000;
JSON
{
  "hex": "#5256ce",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 206
  },
  "hsl": {
    "h": 238.065,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51904,
    "c": 0.18176,
    "h": 276.6
  },
  "luminance": 0.12906
}

Semantic roles & 50–950 ramp

primary
#5256CE
secondary
#D7D6A4
accent
#DA49DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5256CE

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

Preview Lab → · Contrast checker → · Palette generator →

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