#5257BC#5257BC

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

Color values

HEX#5257BC
RGBrgb(82, 87, 188)
HSLhsl(237, 44%, 53%)
HSVhsv(237, 56%, 74%)
CMYKcmyk(56.4%, 53.7%, 0%, 26.3%)
CIE-LABlab(41.59, 27.60, -54.06)
CIE-LCHlch(41.59, 60.70, 297.05°)
OKLaboklab(50.74% 0.0194 -0.1547)
OKLCHoklch(50.74% 0.156 277.2)
XYZxyz(15.9621, 12.2400, 49.0886)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5257BC #BCB752
analogous
#528CBC #5257BC #8252BC
triadic
#5257BC #BC5257 #57BC52
tetradic
#5257BC #BC528C #BCB752 #52BC82
square
#5257BC #BC528C #BCB752 #52BC82
split-complementary
#5257BC #BC8252 #8CBC52
monochromatic
#292C6A #3A3F97 #5257BC #7E82CD #AAADDE

Accessibility & contrast

On white

6.09
#5257BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5257BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5257BC
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5257BC#FFFFFF#000000##FFFFFF
##5257BC1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A67C0
Deuteranopia (green-blind)
#005EBA
Tritanopia (blue-blind)
#176E81
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5257bc;
/* rgb */ color: rgb(82, 87, 188);
/* oklch */ color: oklch(50.7% 0.156 277.2);
Tailwind
colors: {
  custom: {
    50: '#8b86d1',
    500: '#5257bc',
    950: '#000000',
  },
}
SCSS
$custom: #5257bc;
$custom-light: #8b86d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5257bc",
  "rgb": {
    "r": 82,
    "g": 87,
    "b": 188
  },
  "hsl": {
    "h": 237.17,
    "s": 44.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50739,
    "c": 0.15594,
    "h": 277.2
  },
  "luminance": 0.12241
}

Semantic roles & 50–950 ramp

primary
#5257BC
secondary
#CCCA9E
accent
#CE54D4
background
#F9F8FC
surface
#F1EFF9
border
#CBCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5257BC

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

Preview Lab → · Contrast checker → · Palette generator →

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