#5256CC#5256CC

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

Color values

HEX#5256CC
RGBrgb(82, 86, 204)
HSLhsl(238, 54%, 56%)
HSVhsv(238, 60%, 80%)
CMYKcmyk(59.8%, 57.8%, 0%, 20%)
CIE-LABlab(42.47, 33.51, -61.92)
CIE-LCHlch(42.47, 70.41, 298.42°)
OKLaboklab(51.75% 0.0208 -0.1779)
OKLCHoklch(51.75% 0.179 276.7)
XYZxyz(17.7030, 12.8077, 58.6543)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256CC #CCC852
analogous
#5293CC #5256CC #8B52CC
triadic
#5256CC #CC5256 #56CC52
tetradic
#5256CC #CC5293 #CCC852 #52CC8B
square
#5256CC #CC5293 #CCC852 #52CC8B
split-complementary
#5256CC #CC8B52 #93CC52
monochromatic
#25287E #3337AE #5256CC #8184DA #B1B2E8

Accessibility & contrast

On white

5.90
#5256CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5256CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256CC
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256CC#FFFFFF#000000##FFFFFF
##5256CC1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#007289
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5256cc;
/* rgb */ color: rgb(82, 86, 204);
/* oklch */ color: oklch(51.7% 0.179 276.7);
Tailwind
colors: {
  custom: {
    50: '#8e85dc',
    500: '#5256cc',
    950: '#000000',
  },
}
SCSS
$custom: #5256cc;
$custom-light: #8e85dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5256cc",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 238.033,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51749,
    "c": 0.17908,
    "h": 276.7
  },
  "luminance": 0.12809
}

Semantic roles & 50–950 ramp

primary
#5256CC
secondary
#D6D4A4
accent
#D94ADE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5256CC

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

Preview Lab → · Contrast checker → · Palette generator →

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