#5256BB#5256BB

#5256BB is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.5% C 0.156 H 277.5°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#5256BB
RGBrgb(82, 86, 187)
HSLhsl(238, 44%, 53%)
HSVhsv(238, 56%, 73%)
CMYKcmyk(56.1%, 54%, 0%, 26.7%)
CIE-LABlab(41.27, 27.90, -53.99)
CIE-LCHlch(41.27, 60.77, 297.33°)
OKLaboklab(50.48% 0.0204 -0.1545)
OKLCHoklch(50.48% 0.156 277.5)
XYZxyz(15.7743, 12.0362, 48.4961)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256BB #BBB752
analogous
#528BBB #5256BB #8252BB
triadic
#5256BB #BB5256 #56BB52
tetradic
#5256BB #BB528B #BBB752 #52BB82
square
#5256BB #BB528B #BBB752 #52BB82
split-complementary
#5256BB #BB8252 #8BBB52
monochromatic
#292C69 #3B3E95 #5256BB #7E81CC #AAACDE

Accessibility & contrast

On white

6.16
#5256BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#5256BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256BB
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256BB#FFFFFF#000000##FFFFFF
##5256BB1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1866BF
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#196D80
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5256bb;
/* rgb */ color: rgb(82, 86, 187);
/* oklch */ color: oklch(50.5% 0.156 277.5);
Tailwind
colors: {
  custom: {
    50: '#8b85d0',
    500: '#5256bb',
    950: '#000000',
  },
}
SCSS
$custom: #5256bb;
$custom-light: #8b85d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5256bb",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 187
  },
  "hsl": {
    "h": 237.714,
    "s": 43.568,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50477,
    "c": 0.15588,
    "h": 277.5
  },
  "luminance": 0.12037
}

Semantic roles & 50–950 ramp

primary
#5256BB
secondary
#CBC99E
accent
#CE54D3
background
#F9F8FC
surface
#F1EFF9
border
#CBCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5256BB

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

Preview Lab → · Contrast checker → · Palette generator →

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