#5256AF#5256AF

#5256AF is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.6% C 0.139 H 278.1°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#5256AF
RGBrgb(82, 86, 175)
HSLhsl(237, 37%, 50%)
HSVhsv(237, 53%, 69%)
CMYKcmyk(53.1%, 50.9%, 0%, 31.4%)
CIE-LABlab(40.48, 23.97, -48.22)
CIE-LCHlch(40.48, 53.85, 296.44°)
OKLaboklab(49.63% 0.0196 -0.1376)
OKLCHoklch(49.63% 0.139 278.1)
XYZxyz(14.5429, 11.5437, 42.0110)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256AF #AFAB52
analogous
#5285AF #5256AF #7C52AF
triadic
#5256AF #AF5256 #56AF52
tetradic
#5256AF #AF5285 #AFAB52 #52AF7C
square
#5256AF #AF5285 #AFAB52 #52AF7C
split-complementary
#5256AF #AF7C52 #85AF52
monochromatic
#2B2D5C #3E4186 #5256AF #7C7FC2 #A6A8D6

Accessibility & contrast

On white

6.35
#5256AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5256AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256AF
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256AF#FFFFFF#000000##FFFFFF
##5256AF1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A63B2
Deuteranopia (green-blind)
#1F5CAD
Tritanopia (blue-blind)
#296A7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5256af;
/* rgb */ color: rgb(82, 86, 175);
/* oklch */ color: oklch(49.6% 0.139 278.1);
Tailwind
colors: {
  custom: {
    50: '#8985c7',
    500: '#5256af',
    950: '#000000',
  },
}
SCSS
$custom: #5256af;
$custom-light: #8985c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5256af",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 175
  },
  "hsl": {
    "h": 237.419,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.49629,
    "c": 0.13896,
    "h": 278.1
  },
  "luminance": 0.11545
}

Semantic roles & 50–950 ramp

primary
#5256AF
secondary
#C3C19A
accent
#C85BCD
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #5256AF

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

Preview Lab → · Contrast checker → · Palette generator →

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