#5256C8#5256C8

#5256C8 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.4% C 0.174 H 276.9°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#5256C8
RGBrgb(82, 86, 200)
HSLhsl(238, 52%, 55%)
HSVhsv(238, 59%, 78%)
CMYKcmyk(59%, 57%, 0%, 21.6%)
CIE-LABlab(42.18, 32.19, -60.08)
CIE-LCHlch(42.18, 68.16, 298.18°)
OKLaboklab(51.44% 0.0208 -0.1724)
OKLCHoklch(51.44% 0.174 276.9)
XYZxyz(17.2294, 12.6183, 56.1600)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256C8 #C8C452
analogous
#5291C8 #5256C8 #8952C8
triadic
#5256C8 #C85256 #56C852
tetradic
#5256C8 #C85291 #C8C452 #52C889
square
#5256C8 #C85291 #C8C452 #52C889
split-complementary
#5256C8 #C88952 #91C852
monochromatic
#272979 #3539A8 #5256C8 #8083D7 #AFB1E6

Accessibility & contrast

On white

5.96
#5256C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5256C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256C8
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256C8#FFFFFF#000000##FFFFFF
##5256C81.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CC
Deuteranopia (green-blind)
#005FC6
Tritanopia (blue-blind)
#007186
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5256c8;
/* rgb */ color: rgb(82, 86, 200);
/* oklch */ color: oklch(51.4% 0.174 276.9);
Tailwind
colors: {
  custom: {
    50: '#8d85d9',
    500: '#5256c8',
    950: '#000000',
  },
}
SCSS
$custom: #5256c8;
$custom-light: #8d85d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5256c8",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 200
  },
  "hsl": {
    "h": 237.966,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.51443,
    "c": 0.1737,
    "h": 276.9
  },
  "luminance": 0.1262
}

Semantic roles & 50–950 ramp

primary
#5256C8
secondary
#D4D2A2
accent
#D64DDB
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5256C8

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

Preview Lab → · Contrast checker → · Palette generator →

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