#5256DF#5256DF

#5256DF is a mid, highly saturated blue. Relative luminance 0.138; OKLCH L 53.3% C 0.204 H 275.7°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#5256DF
RGBrgb(82, 86, 223)
HSLhsl(238, 69%, 60%)
HSVhsv(238, 63%, 87%)
CMYKcmyk(63.2%, 61.4%, 0%, 12.5%)
CIE-LABlab(43.91, 39.77, -70.46)
CIE-LCHlch(43.91, 80.91, 299.44°)
OKLaboklab(53.26% 0.0203 -0.203)
OKLCHoklch(53.26% 0.204 275.7)
XYZxyz(20.1224, 13.7755, 71.3962)
Luminance0.1378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256DF #DFDB52
analogous
#529CDF #5256DF #9552DF
triadic
#5256DF #DF5256 #56DF52
tetradic
#5256DF #DF529C #DFDB52 #52DF95
square
#5256DF #DF529C #DFDB52 #52DF95
split-complementary
#5256DF #DF9552 #9CDF52
monochromatic
#1D209A #262BCE #5256DF #8688E9 #B9BBF2

Accessibility & contrast

On white

5.59
#5256DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#5256DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256DF
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256DF#FFFFFF#000000##FFFFFF
##5256DF1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE3
Deuteranopia (green-blind)
#0062DC
Tritanopia (blue-blind)
#007892
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5256df;
/* rgb */ color: rgb(82, 86, 223);
/* oklch */ color: oklch(53.3% 0.204 275.7);
Tailwind
colors: {
  custom: {
    50: '#9186ea',
    500: '#5256df',
    950: '#000000',
  },
}
SCSS
$custom: #5256df;
$custom-light: #9186ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5256df",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 223
  },
  "hsl": {
    "h": 238.298,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.5326,
    "c": 0.20399,
    "h": 275.7
  },
  "luminance": 0.13777
}

Semantic roles & 50–950 ramp

primary
#5256DF
secondary
#E2E0AB
accent
#E73CEC
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5256DF

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

Preview Lab → · Contrast checker → · Palette generator →

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