#5257CE#5257CE

#5257CE is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.1% C 0.180 H 276.3°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5257CE
RGBrgb(82, 87, 206)
HSLhsl(238, 56%, 56%)
HSVhsv(238, 60%, 81%)
CMYKcmyk(60.2%, 57.8%, 0%, 19.2%)
CIE-LABlab(42.86, 33.55, -62.44)
CIE-LCHlch(42.86, 70.88, 298.25°)
OKLaboklab(52.08% 0.0199 -0.1794)
OKLCHoklch(52.08% 0.18 276.3)
XYZxyz(18.0248, 13.0651, 59.9525)
Luminance0.1307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5257CE #CEC952
analogous
#5295CE #5257CE #8B52CE
triadic
#5257CE #CE5257 #57CE52
tetradic
#5257CE #CE5295 #CEC952 #52CE8B
square
#5257CE #CE5295 #CEC952 #52CE8B
split-complementary
#5257CE #CE8B52 #95CE52
monochromatic
#252881 #3237B1 #5257CE #8285DC #B1B4E9

Accessibility & contrast

On white

5.81
#5257CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5257CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5257CE
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5257CE#FFFFFF#000000##FFFFFF
##5257CE1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD2
Deuteranopia (green-blind)
#0060CC
Tritanopia (blue-blind)
#00748A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5257ce;
/* rgb */ color: rgb(82, 87, 206);
/* oklch */ color: oklch(52.1% 0.180 276.3);
Tailwind
colors: {
  custom: {
    50: '#8e86de',
    500: '#5257ce',
    950: '#000000',
  },
}
SCSS
$custom: #5257ce;
$custom-light: #8e86de;
$custom-dark: #000000;
JSON
{
  "hex": "#5257ce",
  "rgb": {
    "r": 82,
    "g": 87,
    "b": 206
  },
  "hsl": {
    "h": 237.581,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.52084,
    "c": 0.18049,
    "h": 276.3
  },
  "luminance": 0.13066
}

Semantic roles & 50–950 ramp

primary
#5257CE
secondary
#D7D5A4
accent
#D949DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5257CE

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

Preview Lab → · Contrast checker → · Palette generator →

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