#5259C5#5259C5

#5259C5 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.8% C 0.166 H 276.2°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#5259C5
RGBrgb(82, 89, 197)
HSLhsl(236, 50%, 55%)
HSVhsv(236, 58%, 77%)
CMYKcmyk(58.4%, 54.8%, 0%, 22.7%)
CIE-LABlab(42.72, 29.33, -57.48)
CIE-LCHlch(42.72, 64.53, 297.03°)
OKLaboklab(51.77% 0.0178 -0.1648)
OKLCHoklch(51.77% 0.166 276.2)
XYZxyz(17.1268, 12.9686, 54.4132)
Luminance0.1297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5259C5 #C5BE52
analogous
#5293C5 #5259C5 #8552C5
triadic
#5259C5 #C55259 #59C552
tetradic
#5259C5 #C55293 #C5BE52 #52C585
square
#5259C5 #C55293 #C5BE52 #52C585
split-complementary
#5259C5 #C58552 #93C552
monochromatic
#272C75 #373DA3 #5259C5 #8085D4 #AEB1E4

Accessibility & contrast

On white

5.84
#5259C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#5259C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5259C5
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5259C5#FFFFFF#000000##FFFFFF
##5259C51.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C6AC9
Deuteranopia (green-blind)
#0060C3
Tritanopia (blue-blind)
#007286
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5259c5;
/* rgb */ color: rgb(82, 89, 197);
/* oklch */ color: oklch(51.8% 0.166 276.2);
Tailwind
colors: {
  custom: {
    50: '#8d87d7',
    500: '#5259c5',
    950: '#000000',
  },
}
SCSS
$custom: #5259c5;
$custom-light: #8d87d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5259c5",
  "rgb": {
    "r": 82,
    "g": 89,
    "b": 197
  },
  "hsl": {
    "h": 236.348,
    "s": 49.784,
    "l": 54.706
  },
  "oklch": {
    "l": 0.51773,
    "c": 0.16574,
    "h": 276.2
  },
  "luminance": 0.1297
}

Semantic roles & 50–950 ramp

primary
#5259C5
secondary
#D2CFA1
accent
#D14ED9
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5259C5

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

Preview Lab → · Contrast checker → · Palette generator →

#5259C5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva