#5256BC#5256BC

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

Color values

HEX#5256BC
RGBrgb(82, 86, 188)
HSLhsl(238, 44%, 53%)
HSVhsv(238, 56%, 74%)
CMYKcmyk(56.4%, 54.3%, 0%, 26.3%)
CIE-LABlab(41.34, 28.23, -54.46)
CIE-LCHlch(41.34, 61.35, 297.40°)
OKLaboklab(50.55% 0.0205 -0.1559)
OKLCHoklch(50.55% 0.157 277.5)
XYZxyz(15.8817, 12.0792, 49.0618)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256BC #BCB852
analogous
#528BBC #5256BC #8352BC
triadic
#5256BC #BC5256 #56BC52
tetradic
#5256BC #BC528B #BCB852 #52BC83
square
#5256BC #BC528B #BCB852 #52BC83
split-complementary
#5256BC #BC8352 #8BBC52
monochromatic
#292C6A #3A3E97 #5256BC #7E81CD #AAACDE

Accessibility & contrast

On white

6.15
#5256BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5256BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256BC
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256BC#FFFFFF#000000##FFFFFF
##5256BC1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1666C0
Deuteranopia (green-blind)
#005DBA
Tritanopia (blue-blind)
#186D80
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5256bc;
/* rgb */ color: rgb(82, 86, 188);
/* oklch */ color: oklch(50.5% 0.157 277.5);
Tailwind
colors: {
  custom: {
    50: '#8b85d1',
    500: '#5256bc',
    950: '#000000',
  },
}
SCSS
$custom: #5256bc;
$custom-light: #8b85d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5256bc",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 188
  },
  "hsl": {
    "h": 237.736,
    "s": 44.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50549,
    "c": 0.15728,
    "h": 277.5
  },
  "luminance": 0.1208
}

Semantic roles & 50–950 ramp

primary
#5256BC
secondary
#CCCA9E
accent
#CF54D4
background
#F9F8FC
surface
#F1EFF9
border
#CBCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5256BC

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

Preview Lab → · Contrast checker → · Palette generator →

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