#5257BA#5257BA

#5257BA is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.6% C 0.153 H 277.2°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5257BA
RGBrgb(82, 87, 186)
HSLhsl(237, 43%, 53%)
HSVhsv(237, 56%, 73%)
CMYKcmyk(55.9%, 53.2%, 0%, 27.1%)
CIE-LABlab(41.46, 26.95, -53.10)
CIE-LCHlch(41.46, 59.55, 296.90°)
OKLaboklab(50.6% 0.0193 -0.1519)
OKLCHoklch(50.6% 0.153 277.2)
XYZxyz(15.7480, 12.1543, 47.9610)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5257BA #BAB552
analogous
#528BBA #5257BA #8152BA
triadic
#5257BA #BA5257 #57BA52
tetradic
#5257BA #BA528B #BAB552 #52BA81
square
#5257BA #BA528B #BAB552 #52BA81
split-complementary
#5257BA #BA8152 #8BBA52
monochromatic
#2A2D68 #3B3F94 #5257BA #7E81CB #AAACDD

Accessibility & contrast

On white

6.12
#5257BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5257BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5257BA
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5257BA#FFFFFF#000000##FFFFFF
##5257BA1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D66BD
Deuteranopia (green-blind)
#045EB8
Tritanopia (blue-blind)
#1B6E80
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5257ba;
/* rgb */ color: rgb(82, 87, 186);
/* oklch */ color: oklch(50.6% 0.153 277.2);
Tailwind
colors: {
  custom: {
    50: '#8b86cf',
    500: '#5257ba',
    950: '#000000',
  },
}
SCSS
$custom: #5257ba;
$custom-light: #8b86cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5257ba",
  "rgb": {
    "r": 82,
    "g": 87,
    "b": 186
  },
  "hsl": {
    "h": 237.115,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50595,
    "c": 0.15314,
    "h": 277.2
  },
  "luminance": 0.12155
}

Semantic roles & 50–950 ramp

primary
#5257BA
secondary
#CAC89D
accent
#CD55D3
background
#F9F8FC
surface
#F1EFF9
border
#CBCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5257BA

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

Preview Lab → · Contrast checker → · Palette generator →

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