#5257CD#5257CD

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

Color values

HEX#5257CD
RGBrgb(82, 87, 205)
HSLhsl(238, 55%, 56%)
HSVhsv(238, 60%, 80%)
CMYKcmyk(60%, 57.6%, 0%, 19.6%)
CIE-LABlab(42.79, 33.22, -61.98)
CIE-LCHlch(42.79, 70.32, 298.19°)
OKLaboklab(52.01% 0.0199 -0.1781)
OKLCHoklch(52.01% 0.179 276.4)
XYZxyz(17.9037, 13.0166, 59.3148)
Luminance0.1302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5257CD #CDC852
analogous
#5295CD #5257CD #8B52CD
triadic
#5257CD #CD5257 #57CD52
tetradic
#5257CD #CD5295 #CDC852 #52CD8B
square
#5257CD #CD5295 #CDC852 #52CD8B
split-complementary
#5257CD #CD8B52 #95CD52
monochromatic
#252980 #3338AF #5257CD #8185DB #B1B3E8

Accessibility & contrast

On white

5.83
#5257CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#5257CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5257CD
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5257CD#FFFFFF#000000##FFFFFF
##5257CD1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5257cd;
/* rgb */ color: rgb(82, 87, 205);
/* oklch */ color: oklch(52.0% 0.179 276.4);
Tailwind
colors: {
  custom: {
    50: '#8e86dd',
    500: '#5257cd',
    950: '#000000',
  },
}
SCSS
$custom: #5257cd;
$custom-light: #8e86dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5257cd",
  "rgb": {
    "r": 82,
    "g": 87,
    "b": 205
  },
  "hsl": {
    "h": 237.561,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.52007,
    "c": 0.17916,
    "h": 276.4
  },
  "luminance": 0.13018
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5257CD

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

Preview Lab → · Contrast checker → · Palette generator →

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