#5254AF#5254AF

#5254AF is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.2% C 0.142 H 278.9°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#5254AF
RGBrgb(82, 84, 175)
HSLhsl(239, 37%, 50%)
HSVhsv(239, 53%, 69%)
CMYKcmyk(53.1%, 52%, 0%, 31.4%)
CIE-LABlab(39.96, 25.24, -49.05)
CIE-LCHlch(39.96, 55.16, 297.23°)
OKLaboklab(49.24% 0.0219 -0.14)
OKLCHoklch(49.24% 0.142 278.9)
XYZxyz(14.3854, 11.2288, 41.9585)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5254AF #AFAD52
analogous
#5282AF #5254AF #7F52AF
triadic
#5254AF #AF5254 #54AF52
tetradic
#5254AF #AF5282 #AFAD52 #52AF7F
square
#5254AF #AF5282 #AFAD52 #52AF7F
split-complementary
#5254AF #AF7F52 #82AF52
monochromatic
#2B2C5C #3E3F86 #5254AF #7C7DC2 #A6A7D6

Accessibility & contrast

On white

6.47
#5254AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5254AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5254AF
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5254AF#FFFFFF#000000##FFFFFF
##5254AF1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2562B2
Deuteranopia (green-blind)
#195BAD
Tritanopia (blue-blind)
#296879
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5254af;
/* rgb */ color: rgb(82, 84, 175);
/* oklch */ color: oklch(49.2% 0.142 278.9);
Tailwind
colors: {
  custom: {
    50: '#8a84c7',
    500: '#5254af',
    950: '#000000',
  },
}
SCSS
$custom: #5254af;
$custom-light: #8a84c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5254af",
  "rgb": {
    "r": 82,
    "g": 84,
    "b": 175
  },
  "hsl": {
    "h": 238.71,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.49239,
    "c": 0.14173,
    "h": 278.9
  },
  "luminance": 0.1123
}

Semantic roles & 50–950 ramp

primary
#5254AF
secondary
#C3C29A
accent
#CA5BCD
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #5254AF

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

Preview Lab → · Contrast checker → · Palette generator →

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