#5257DC#5257DC

#5257DC is a mid, vivid blue. Relative luminance 0.138; OKLCH L 53.2% C 0.199 H 275.7°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#5257DC
RGBrgb(82, 87, 220)
HSLhsl(238, 66%, 59%)
HSVhsv(238, 63%, 86%)
CMYKcmyk(62.7%, 60.5%, 0%, 13.7%)
CIE-LABlab(43.91, 38.18, -68.75)
CIE-LCHlch(43.91, 78.64, 299.04°)
OKLaboklab(53.19% 0.0196 -0.1979)
OKLCHoklch(53.19% 0.199 275.7)
XYZxyz(19.8019, 13.7759, 69.3118)
Luminance0.1378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5257DC #DCD752
analogous
#529CDC #5257DC #9252DC
triadic
#5257DC #DC5257 #57DC52
tetradic
#5257DC #DC529C #DCD752 #52DC92
square
#5257DC #DC529C #DCD752 #52DC92
split-complementary
#5257DC #DC9252 #9CDC52
monochromatic
#1E2395 #292EC8 #5257DC #8588E6 #B8BAF1

Accessibility & contrast

On white

5.59
#5257DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#5257DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5257DC
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5257DC#FFFFFF#000000##FFFFFF
##5257DC1.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)
#006EE0
Deuteranopia (green-blind)
#0062D9
Tritanopia (blue-blind)
#007891
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5257dc;
/* rgb */ color: rgb(82, 87, 220);
/* oklch */ color: oklch(53.2% 0.199 275.7);
Tailwind
colors: {
  custom: {
    50: '#9186e8',
    500: '#5257dc',
    950: '#000000',
  },
}
SCSS
$custom: #5257dc;
$custom-light: #9186e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5257dc",
  "rgb": {
    "r": 82,
    "g": 87,
    "b": 220
  },
  "hsl": {
    "h": 237.826,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.53188,
    "c": 0.19892,
    "h": 275.7
  },
  "luminance": 0.13778
}

Semantic roles & 50–950 ramp

primary
#5257DC
secondary
#E0DEAA
accent
#E33FE9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5257DC

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

Preview Lab → · Contrast checker → · Palette generator →

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