#5256BF#5256BF

#5256BF is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.8% C 0.161 H 277.3°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#5256BF
RGBrgb(82, 86, 191)
HSLhsl(238, 46%, 54%)
HSVhsv(238, 57%, 75%)
CMYKcmyk(57.1%, 55%, 0%, 25.1%)
CIE-LABlab(41.55, 29.22, -55.88)
CIE-LCHlch(41.55, 63.06, 297.60°)
OKLaboklab(50.77% 0.0206 -0.1601)
OKLCHoklch(50.77% 0.161 277.3)
XYZxyz(16.2084, 12.2099, 50.7827)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256BF #BFBB52
analogous
#528CBF #5256BF #8452BF
triadic
#5256BF #BF5256 #56BF52
tetradic
#5256BF #BF528C #BFBB52 #52BF84
square
#5256BF #BF528C #BFBB52 #52BF84
split-complementary
#5256BF #BF8452 #8CBF52
monochromatic
#292B6E #393D9B #5256BF #7F82D0 #ABADE0

Accessibility & contrast

On white

6.10
#5256BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5256BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256BF
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256BF#FFFFFF#000000##FFFFFF
##5256BF1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D67C3
Deuteranopia (green-blind)
#005EBD
Tritanopia (blue-blind)
#116E82
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5256bf;
/* rgb */ color: rgb(82, 86, 191);
/* oklch */ color: oklch(50.8% 0.161 277.3);
Tailwind
colors: {
  custom: {
    50: '#8c85d3',
    500: '#5256bf',
    950: '#000000',
  },
}
SCSS
$custom: #5256bf;
$custom-light: #8c85d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5256bf",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 191
  },
  "hsl": {
    "h": 237.798,
    "s": 45.992,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50769,
    "c": 0.16142,
    "h": 277.3
  },
  "luminance": 0.12211
}

Semantic roles & 50–950 ramp

primary
#5256BF
secondary
#CECC9F
accent
#D152D6
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5256BF

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

Preview Lab → · Contrast checker → · Palette generator →

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