#5256C7#5256C7

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

Color values

HEX#5256C7
RGBrgb(82, 86, 199)
HSLhsl(238, 51%, 55%)
HSVhsv(238, 59%, 78%)
CMYKcmyk(58.8%, 56.8%, 0%, 22%)
CIE-LABlab(42.11, 31.86, -59.62)
CIE-LCHlch(42.11, 67.59, 298.12°)
OKLaboklab(51.37% 0.0208 -0.1711)
OKLCHoklch(51.37% 0.172 276.9)
XYZxyz(17.1130, 12.5717, 55.5465)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256C7 #C7C352
analogous
#5290C7 #5256C7 #8952C7
triadic
#5256C7 #C75256 #56C752
tetradic
#5256C7 #C75290 #C7C352 #52C789
square
#5256C7 #C75290 #C7C352 #52C789
split-complementary
#5256C7 #C78952 #90C752
monochromatic
#272A78 #363AA6 #5256C7 #8083D6 #AEB0E5

Accessibility & contrast

On white

5.98
#5256C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5256C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256C7
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256C7#FFFFFF#000000##FFFFFF
##5256C71.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#005FC5
Tritanopia (blue-blind)
#007186
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5256c7;
/* rgb */ color: rgb(82, 86, 199);
/* oklch */ color: oklch(51.4% 0.172 276.9);
Tailwind
colors: {
  custom: {
    50: '#8d85d9',
    500: '#5256c7',
    950: '#000000',
  },
}
SCSS
$custom: #5256c7;
$custom-light: #8d85d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5256c7",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 199
  },
  "hsl": {
    "h": 237.949,
    "s": 51.092,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51367,
    "c": 0.17235,
    "h": 276.9
  },
  "luminance": 0.12573
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5256C7

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

Preview Lab → · Contrast checker → · Palette generator →

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