#5257CC#5257CC

#5257CC is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.9% C 0.178 H 276.4°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#5257CC
RGBrgb(82, 87, 204)
HSLhsl(238, 54%, 56%)
HSVhsv(238, 60%, 80%)
CMYKcmyk(59.8%, 57.4%, 0%, 20%)
CIE-LABlab(42.72, 32.89, -61.52)
CIE-LCHlch(42.72, 69.76, 298.13°)
OKLaboklab(51.93% 0.0199 -0.1767)
OKLCHoklch(51.93% 0.178 276.4)
XYZxyz(17.7834, 12.9685, 58.6811)
Luminance0.1297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5257CC #CCC752
analogous
#5294CC #5257CC #8A52CC
triadic
#5257CC #CC5257 #57CC52
tetradic
#5257CC #CC5294 #CCC752 #52CC8A
square
#5257CC #CC5294 #CCC752 #52CC8A
split-complementary
#5257CC #CC8A52 #94CC52
monochromatic
#25297E #3338AE #5257CC #8185DA #B1B3E8

Accessibility & contrast

On white

5.84
#5257CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#5257CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5257CC
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5257CC#FFFFFF#000000##FFFFFF
##5257CC1.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#0060CA
Tritanopia (blue-blind)
#007389
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5257cc;
/* rgb */ color: rgb(82, 87, 204);
/* oklch */ color: oklch(51.9% 0.178 276.4);
Tailwind
colors: {
  custom: {
    50: '#8e86dc',
    500: '#5257cc',
    950: '#000000',
  },
}
SCSS
$custom: #5257cc;
$custom-light: #8e86dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5257cc",
  "rgb": {
    "r": 82,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 237.541,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5193,
    "c": 0.17781,
    "h": 276.4
  },
  "luminance": 0.1297
}

Semantic roles & 50–950 ramp

primary
#5257CC
secondary
#D6D4A4
accent
#D84ADE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5257CC

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

Preview Lab → · Contrast checker → · Palette generator →

#5257CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva