#5256FF#5256FF

#5256FF is a mid, highly saturated blue. Relative luminance 0.157; OKLCH L 56.0% C 0.244 H 274.2°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5256FF
RGBrgb(82, 86, 255)
HSLhsl(239, 100%, 66%)
HSVhsv(239, 68%, 100%)
CMYKcmyk(67.8%, 66.3%, 0%, 0%)
CIE-LABlab(46.53, 50.18, -84.16)
CIE-LCHlch(46.53, 97.98, 300.80°)
OKLaboklab(55.99% 0.0178 -0.2431)
OKLCHoklch(55.99% 0.244 274.2)
XYZxyz(24.8515, 15.6671, 96.3027)
Luminance0.1567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256FF #FFFB52
analogous
#52ACFF #5256FF #A452FF
triadic
#5256FF #FF5256 #56FF52
tetradic
#5256FF #FF52AC #FFFB52 #52FFA4
square
#5256FF #FF52AC #FFFB52 #52FFA4
split-complementary
#5256FF #FFA452 #ACFF52
monochromatic
#0005D7 #151AFF #5256FF #8F92FF #CCCEFF

Accessibility & contrast

On white

5.08
#5256FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#5256FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256FF
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256FF#FFFFFF#000000##FFFFFF
##5256FF1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076FF
Deuteranopia (green-blind)
#0066FC
Tritanopia (blue-blind)
#0083A3
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5256ff;
/* rgb */ color: rgb(82, 86, 255);
/* oklch */ color: oklch(56.0% 0.244 274.2);
Tailwind
colors: {
  custom: {
    50: '#9786ff',
    500: '#5256ff',
    950: '#000000',
  },
}
SCSS
$custom: #5256ff;
$custom-light: #9786ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5256ff",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 255
  },
  "hsl": {
    "h": 238.613,
    "s": 100,
    "l": 66.078
  },
  "oklch": {
    "l": 0.55985,
    "c": 0.24378,
    "h": 274.2
  },
  "luminance": 0.15669
}

Semantic roles & 50–950 ramp

primary
#5256FF
secondary
#F3F2BA
accent
#E000E6
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B18
muted
#7F7C86

Preview Lab

Preview with #5256FF

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

Preview Lab → · Contrast checker → · Palette generator →

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