#5256CD#5256CD

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

Color values

HEX#5256CD
RGBrgb(82, 86, 205)
HSLhsl(238, 55%, 56%)
HSVhsv(238, 60%, 80%)
CMYKcmyk(60%, 58%, 0%, 19.6%)
CIE-LABlab(42.55, 33.84, -62.38)
CIE-LCHlch(42.55, 70.97, 298.48°)
OKLaboklab(51.83% 0.0208 -0.1792)
OKLCHoklch(51.83% 0.18 276.6)
XYZxyz(17.8233, 12.8558, 59.2880)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256CD #CDC952
analogous
#5294CD #5256CD #8C52CD
triadic
#5256CD #CD5256 #56CD52
tetradic
#5256CD #CD5294 #CDC952 #52CD8C
square
#5256CD #CD5294 #CDC952 #52CD8C
split-complementary
#5256CD #CD8C52 #94CD52
monochromatic
#252880 #3337AF #5256CD #8184DB #B1B3E8

Accessibility & contrast

On white

5.88
#5256CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5256CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256CD
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256CD#FFFFFF#000000##FFFFFF
##5256CD1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#005FCB
Tritanopia (blue-blind)
#007389
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5256cd;
/* rgb */ color: rgb(82, 86, 205);
/* oklch */ color: oklch(51.8% 0.180 276.6);
Tailwind
colors: {
  custom: {
    50: '#8e85dd',
    500: '#5256cd',
    950: '#000000',
  },
}
SCSS
$custom: #5256cd;
$custom-light: #8e85dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5256cd",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 238.049,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51827,
    "c": 0.18041,
    "h": 276.6
  },
  "luminance": 0.12857
}

Semantic roles & 50–950 ramp

primary
#5256CD
secondary
#D7D5A4
accent
#DA49DE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5256CD

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

Preview Lab → · Contrast checker → · Palette generator →

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