#5256BE#5256BE

#5256BE is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.7% C 0.160 H 277.4°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5256BE
RGBrgb(82, 86, 190)
HSLhsl(238, 45%, 53%)
HSVhsv(238, 57%, 75%)
CMYKcmyk(56.8%, 54.7%, 0%, 25.5%)
CIE-LABlab(41.48, 28.89, -55.41)
CIE-LCHlch(41.48, 62.49, 297.54°)
OKLaboklab(50.7% 0.0206 -0.1587)
OKLCHoklch(50.7% 0.16 277.4)
XYZxyz(16.0988, 12.1660, 50.2052)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256BE #BEBA52
analogous
#528CBE #5256BE #8452BE
triadic
#5256BE #BE5256 #56BE52
tetradic
#5256BE #BE528C #BEBA52 #52BE84
square
#5256BE #BE528C #BEBA52 #52BE84
split-complementary
#5256BE #BE8452 #8CBE52
monochromatic
#292B6D #3A3D99 #5256BE #7E81CF #ABADDF

Accessibility & contrast

On white

6.12
#5256BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5256BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256BE
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256BE#FFFFFF#000000##FFFFFF
##5256BE1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1066C2
Deuteranopia (green-blind)
#005DBC
Tritanopia (blue-blind)
#136E81
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5256be;
/* rgb */ color: rgb(82, 86, 190);
/* oklch */ color: oklch(50.7% 0.160 277.4);
Tailwind
colors: {
  custom: {
    50: '#8c85d2',
    500: '#5256be',
    950: '#000000',
  },
}
SCSS
$custom: #5256be;
$custom-light: #8c85d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5256be",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 190
  },
  "hsl": {
    "h": 237.778,
    "s": 45.378,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50695,
    "c": 0.16005,
    "h": 277.4
  },
  "luminance": 0.12167
}

Semantic roles & 50–950 ramp

primary
#5256BE
secondary
#CDCB9F
accent
#D053D5
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5256BE

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

Preview Lab → · Contrast checker → · Palette generator →

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