#5257DB#5257DB

#5257DB is a mid, vivid blue. Relative luminance 0.137; OKLCH L 53.1% C 0.198 H 275.7°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#5257DB
RGBrgb(82, 87, 219)
HSLhsl(238, 66%, 59%)
HSVhsv(238, 63%, 86%)
CMYKcmyk(62.6%, 60.3%, 0%, 14.1%)
CIE-LABlab(43.83, 37.85, -68.31)
CIE-LCHlch(43.83, 78.09, 298.99°)
OKLaboklab(53.11% 0.0197 -0.1966)
OKLCHoklch(53.11% 0.198 275.7)
XYZxyz(19.6699, 13.7231, 68.6164)
Luminance0.1373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5257DB #DBD652
analogous
#529CDB #5257DB #9252DB
triadic
#5257DB #DB5257 #57DB52
tetradic
#5257DB #DB529C #DBD652 #52DB92
square
#5257DB #DB529C #DBD652 #52DB92
split-complementary
#5257DB #DB9252 #9CDB52
monochromatic
#1F2394 #292FC6 #5257DB #8588E6 #B7B9F0

Accessibility & contrast

On white

5.61
#5257DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#5257DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5257DB
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5257DB#FFFFFF#000000##FFFFFF
##5257DB1.005.613.755.61
#FFFFFF5.611.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#0062D8
Tritanopia (blue-blind)
#007891
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5257db;
/* rgb */ color: rgb(82, 87, 219);
/* oklch */ color: oklch(53.1% 0.198 275.7);
Tailwind
colors: {
  custom: {
    50: '#9186e7',
    500: '#5257db',
    950: '#000000',
  },
}
SCSS
$custom: #5257db;
$custom-light: #9186e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5257db",
  "rgb": {
    "r": 82,
    "g": 87,
    "b": 219
  },
  "hsl": {
    "h": 237.81,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.53108,
    "c": 0.19762,
    "h": 275.7
  },
  "luminance": 0.13725
}

Semantic roles & 50–950 ramp

primary
#5257DB
secondary
#DFDDAA
accent
#E23FE9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5257DB

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

Preview Lab → · Contrast checker → · Palette generator →

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