#5256CB#5256CB

#5256CB is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.7% C 0.178 H 276.7°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#5256CB
RGBrgb(82, 86, 203)
HSLhsl(238, 54%, 56%)
HSVhsv(238, 60%, 80%)
CMYKcmyk(59.6%, 57.6%, 0%, 20.4%)
CIE-LABlab(42.40, 33.18, -61.46)
CIE-LCHlch(42.40, 69.84, 298.36°)
OKLaboklab(51.67% 0.0208 -0.1765)
OKLCHoklch(51.67% 0.178 276.7)
XYZxyz(17.5835, 12.7599, 58.0247)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256CB #CBC752
analogous
#5292CB #5256CB #8B52CB
triadic
#5256CB #CB5256 #56CB52
tetradic
#5256CB #CB5292 #CBC752 #52CB8B
square
#5256CB #CB5292 #CBC752 #52CB8B
split-complementary
#5256CB #CB8B52 #92CB52
monochromatic
#26287D #3438AC #5256CB #8184D9 #B0B2E7

Accessibility & contrast

On white

5.91
#5256CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5256CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256CB
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256CB#FFFFFF#000000##FFFFFF
##5256CB1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#005FC9
Tritanopia (blue-blind)
#007288
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5256cb;
/* rgb */ color: rgb(82, 86, 203);
/* oklch */ color: oklch(51.7% 0.178 276.7);
Tailwind
colors: {
  custom: {
    50: '#8e85dc',
    500: '#5256cb',
    950: '#000000',
  },
}
SCSS
$custom: #5256cb;
$custom-light: #8e85dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5256cb",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 238.017,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51672,
    "c": 0.17774,
    "h": 276.7
  },
  "luminance": 0.12761
}

Semantic roles & 50–950 ramp

primary
#5256CB
secondary
#D5D4A3
accent
#D84BDD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5256CB

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

Preview Lab → · Contrast checker → · Palette generator →

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