#5256C9#5256C9

#5256C9 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.5% C 0.175 H 276.8°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#5256C9
RGBrgb(82, 86, 201)
HSLhsl(238, 52%, 55%)
HSVhsv(238, 59%, 79%)
CMYKcmyk(59.2%, 57.2%, 0%, 21.2%)
CIE-LABlab(42.25, 32.52, -60.54)
CIE-LCHlch(42.25, 68.72, 298.24°)
OKLaboklab(51.52% 0.0208 -0.1738)
OKLCHoklch(51.52% 0.175 276.8)
XYZxyz(17.3467, 12.6652, 56.7775)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256C9 #C9C552
analogous
#5291C9 #5256C9 #8952C9
triadic
#5256C9 #C95256 #56C952
tetradic
#5256C9 #C95291 #C9C552 #52C989
square
#5256C9 #C95291 #C9C552 #52C989
split-complementary
#5256C9 #C98952 #91C952
monochromatic
#26297A #3539A9 #5256C9 #8184D8 #AFB1E6

Accessibility & contrast

On white

5.94
#5256C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5256C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256C9
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256C9#FFFFFF#000000##FFFFFF
##5256C91.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CD
Deuteranopia (green-blind)
#005FC7
Tritanopia (blue-blind)
#007187
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5256c9;
/* rgb */ color: rgb(82, 86, 201);
/* oklch */ color: oklch(51.5% 0.175 276.8);
Tailwind
colors: {
  custom: {
    50: '#8e85da',
    500: '#5256c9',
    950: '#000000',
  },
}
SCSS
$custom: #5256c9;
$custom-light: #8e85da;
$custom-dark: #000000;
JSON
{
  "hex": "#5256c9",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 201
  },
  "hsl": {
    "h": 237.983,
    "s": 52.423,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51519,
    "c": 0.17505,
    "h": 276.8
  },
  "luminance": 0.12666
}

Semantic roles & 50–950 ramp

primary
#5256C9
secondary
#D4D3A3
accent
#D74CDC
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5256C9

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

Preview Lab → · Contrast checker → · Palette generator →

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