#5259AC#5259AC

#5259AC is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.0% C 0.130 H 277.0°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#5259AC
RGBrgb(82, 89, 172)
HSLhsl(235, 35%, 50%)
HSVhsv(235, 52%, 67%)
CMYKcmyk(52.3%, 48.3%, 0%, 32.5%)
CIE-LABlab(41.08, 21.09, -45.48)
CIE-LCHlch(41.08, 50.14, 294.88°)
OKLaboklab(50.02% 0.0158 -0.1295)
OKLCHoklch(50.02% 0.13 277)
XYZxyz(14.4961, 11.9163, 40.5579)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5259AC #ACA552
analogous
#5286AC #5259AC #7852AC
triadic
#5259AC #AC5259 #59AC52
tetradic
#5259AC #AC5286 #ACA552 #52AC78
square
#5259AC #AC5286 #ACA552 #52AC78
split-complementary
#5259AC #AC7852 #86AC52
monochromatic
#2A2E59 #3E4483 #5259AC #7B80C0 #A5A8D4

Accessibility & contrast

On white

6.21
#5259AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#5259AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5259AC
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5259AC#FFFFFF#000000##FFFFFF
##5259AC1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3365AF
Deuteranopia (green-blind)
#2A5DAA
Tritanopia (blue-blind)
#2B6B7A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5259ac;
/* rgb */ color: rgb(82, 89, 172);
/* oklch */ color: oklch(50.0% 0.130 277.0);
Tailwind
colors: {
  custom: {
    50: '#8987c5',
    500: '#5259ac',
    950: '#000000',
  },
}
SCSS
$custom: #5259ac;
$custom-light: #8987c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5259ac",
  "rgb": {
    "r": 82,
    "g": 89,
    "b": 172
  },
  "hsl": {
    "h": 235.333,
    "s": 35.433,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50022,
    "c": 0.13046,
    "h": 277
  },
  "luminance": 0.11917
}

Semantic roles & 50–950 ramp

primary
#5259AC
secondary
#C1BE99
accent
#C35CCB
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #5259AC

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

Preview Lab → · Contrast checker → · Palette generator →

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