#5256D3#5256D3

#5256D3 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.3% C 0.188 H 276.3°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#5256D3
RGBrgb(82, 86, 211)
HSLhsl(238, 59%, 57%)
HSVhsv(238, 61%, 83%)
CMYKcmyk(61.1%, 59.2%, 0%, 17.3%)
CIE-LABlab(42.99, 35.82, -65.10)
CIE-LCHlch(42.99, 74.31, 298.82°)
OKLaboklab(52.3% 0.0207 -0.1872)
OKLCHoklch(52.3% 0.188 276.3)
XYZxyz(18.5615, 13.1511, 63.1757)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256D3 #D3CF52
analogous
#5296D3 #5256D3 #8F52D3
triadic
#5256D3 #D35256 #56D352
tetradic
#5256D3 #D35296 #D3CF52 #52D38F
square
#5256D3 #D35296 #D3CF52 #52D38F
split-complementary
#5256D3 #D38F52 #96D352
monochromatic
#232688 #2F33B9 #5256D3 #8386DF #B4B5EC

Accessibility & contrast

On white

5.78
#5256D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#5256D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256D3
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256D3#FFFFFF#000000##FFFFFF
##5256D31.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD7
Deuteranopia (green-blind)
#0060D0
Tritanopia (blue-blind)
#00748C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5256d3;
/* rgb */ color: rgb(82, 86, 211);
/* oklch */ color: oklch(52.3% 0.188 276.3);
Tailwind
colors: {
  custom: {
    50: '#8f85e1',
    500: '#5256d3',
    950: '#000000',
  },
}
SCSS
$custom: #5256d3;
$custom-light: #8f85e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5256d3",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 211
  },
  "hsl": {
    "h": 238.14,
    "s": 59.447,
    "l": 57.451
  },
  "oklch": {
    "l": 0.52296,
    "c": 0.18838,
    "h": 276.3
  },
  "luminance": 0.13153
}

Semantic roles & 50–950 ramp

primary
#5256D3
secondary
#DAD9A6
accent
#DE45E3
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5256D3

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

Preview Lab → · Contrast checker → · Palette generator →

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