#5257CA#5257CA

#5257CA is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.8% C 0.175 H 276.5°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#5257CA
RGBrgb(82, 87, 202)
HSLhsl(238, 53%, 56%)
HSVhsv(238, 59%, 79%)
CMYKcmyk(59.4%, 56.9%, 0%, 20.8%)
CIE-LABlab(42.57, 32.23, -60.60)
CIE-LCHlch(42.57, 68.64, 298.00°)
OKLaboklab(51.78% 0.0199 -0.174)
OKLCHoklch(51.78% 0.175 276.5)
XYZxyz(17.5451, 12.8732, 57.4259)
Luminance0.1287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5257CA #CAC552
analogous
#5293CA #5257CA #8952CA
triadic
#5257CA #CA5257 #57CA52
tetradic
#5257CA #CA5293 #CAC552 #52CA89
square
#5257CA #CA5293 #CAC552 #52CA89
split-complementary
#5257CA #CA8952 #93CA52
monochromatic
#26297C #3439AB #5257CA #8184D8 #B0B2E7

Accessibility & contrast

On white

5.87
#5257CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5257CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5257CA
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5257CA#FFFFFF#000000##FFFFFF
##5257CA1.005.873.575.87
#FFFFFF5.871.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#0060C8
Tritanopia (blue-blind)
#007288
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5257ca;
/* rgb */ color: rgb(82, 87, 202);
/* oklch */ color: oklch(51.8% 0.175 276.5);
Tailwind
colors: {
  custom: {
    50: '#8e86db',
    500: '#5257ca',
    950: '#000000',
  },
}
SCSS
$custom: #5257ca;
$custom-light: #8e86db;
$custom-dark: #000000;
JSON
{
  "hex": "#5257ca",
  "rgb": {
    "r": 82,
    "g": 87,
    "b": 202
  },
  "hsl": {
    "h": 237.5,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51777,
    "c": 0.17512,
    "h": 276.5
  },
  "luminance": 0.12874
}

Semantic roles & 50–950 ramp

primary
#5257CA
secondary
#D5D3A3
accent
#D64BDD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5257CA

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

Preview Lab → · Contrast checker → · Palette generator →

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