#5259A8#5259A8

#5259A8 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.8% C 0.125 H 277.0°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#5259A8
RGBrgb(82, 89, 168)
HSLhsl(235, 34%, 49%)
HSVhsv(235, 51%, 66%)
CMYKcmyk(51.2%, 47%, 0%, 34.1%)
CIE-LABlab(40.84, 19.80, -43.51)
CIE-LCHlch(40.84, 47.80, 294.47°)
OKLaboklab(49.76% 0.0153 -0.1237)
OKLCHoklch(49.76% 0.125 277)
XYZxyz(14.1177, 11.7649, 38.5651)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5259A8 #A8A152
analogous
#5284A8 #5259A8 #7652A8
triadic
#5259A8 #A85259 #59A852
tetradic
#5259A8 #A85284 #A8A152 #52A876
square
#5259A8 #A85284 #A8A152 #52A876
split-complementary
#5259A8 #A87652 #84A852
monochromatic
#2A2D56 #3E437F #5259A8 #797FBE #A3A6D2

Accessibility & contrast

On white

6.26
#5259A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5259A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5259A8
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5259A8#FFFFFF#000000##FFFFFF
##5259A81.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3764AB
Deuteranopia (green-blind)
#2E5DA6
Tritanopia (blue-blind)
#2F6A78
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5259a8;
/* rgb */ color: rgb(82, 89, 168);
/* oklch */ color: oklch(49.8% 0.125 277.0);
Tailwind
colors: {
  custom: {
    50: '#8887c2',
    500: '#5259a8',
    950: '#000000',
  },
}
SCSS
$custom: #5259a8;
$custom-light: #8887c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5259a8",
  "rgb": {
    "r": 82,
    "g": 89,
    "b": 168
  },
  "hsl": {
    "h": 235.116,
    "s": 34.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.4976,
    "c": 0.12464,
    "h": 277
  },
  "luminance": 0.11766
}

Semantic roles & 50–950 ramp

primary
#5259A8
secondary
#BFBC97
accent
#C25DCA
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0B12
muted
#7D7C81

Preview Lab

Preview with #5259A8

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

Preview Lab → · Contrast checker → · Palette generator →

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