#5257DF#5257DF

#5257DF is a mid, highly saturated blue. Relative luminance 0.139; OKLCH L 53.4% C 0.203 H 275.5°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#5257DF
RGBrgb(82, 87, 223)
HSLhsl(238, 69%, 60%)
HSVhsv(238, 63%, 87%)
CMYKcmyk(63.2%, 61%, 0%, 12.5%)
CIE-LABlab(44.14, 39.17, -70.08)
CIE-LCHlch(44.14, 80.29, 299.20°)
OKLaboklab(53.43% 0.0195 -0.2019)
OKLCHoklch(53.43% 0.203 275.5)
XYZxyz(20.2028, 13.9363, 71.4230)
Luminance0.1394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5257DF #DFDA52
analogous
#529EDF #5257DF #9352DF
triadic
#5257DF #DF5257 #57DF52
tetradic
#5257DF #DF529E #DFDA52 #52DF93
square
#5257DF #DF529E #DFDA52 #52DF93
split-complementary
#5257DF #DF9352 #9EDF52
monochromatic
#1D219A #262CCE #5257DF #8689E9 #B9BBF2

Accessibility & contrast

On white

5.54
#5257DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#5257DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5257DF
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5257DF#FFFFFF#000000##FFFFFF
##5257DF1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5257df;
/* rgb */ color: rgb(82, 87, 223);
/* oklch */ color: oklch(53.4% 0.203 275.5);
Tailwind
colors: {
  custom: {
    50: '#9186ea',
    500: '#5257df',
    950: '#000000',
  },
}
SCSS
$custom: #5257df;
$custom-light: #9186ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5257df",
  "rgb": {
    "r": 82,
    "g": 87,
    "b": 223
  },
  "hsl": {
    "h": 237.872,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.53431,
    "c": 0.2028,
    "h": 275.5
  },
  "luminance": 0.13938
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5257DF

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

Preview Lab → · Contrast checker → · Palette generator →

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