#5259C2#5259C2

#5259C2 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.6% C 0.162 H 276.3°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5259C2
RGBrgb(82, 89, 194)
HSLhsl(236, 48%, 54%)
HSVhsv(236, 58%, 76%)
CMYKcmyk(57.7%, 54.1%, 0%, 23.9%)
CIE-LABlab(42.51, 28.33, -56.07)
CIE-LCHlch(42.51, 62.82, 296.81°)
OKLaboklab(51.55% 0.0176 -0.1606)
OKLCHoklch(51.55% 0.162 276.3)
XYZxyz(16.7865, 12.8324, 52.6208)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5259C2 #C2BB52
analogous
#5291C2 #5259C2 #8352C2
triadic
#5259C2 #C25259 #59C252
tetradic
#5259C2 #C25291 #C2BB52 #52C283
square
#5259C2 #C25291 #C2BB52 #52C283
split-complementary
#5259C2 #C28352 #91C252
monochromatic
#282D72 #383E9F #5259C2 #7F84D2 #ACB0E2

Accessibility & contrast

On white

5.89
#5259C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5259C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5259C2
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5259C2#FFFFFF#000000##FFFFFF
##5259C21.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1569C6
Deuteranopia (green-blind)
#0060C0
Tritanopia (blue-blind)
#067185
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5259c2;
/* rgb */ color: rgb(82, 89, 194);
/* oklch */ color: oklch(51.6% 0.162 276.3);
Tailwind
colors: {
  custom: {
    50: '#8c87d5',
    500: '#5259c2',
    950: '#000000',
  },
}
SCSS
$custom: #5259c2;
$custom-light: #8c87d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5259c2",
  "rgb": {
    "r": 82,
    "g": 89,
    "b": 194
  },
  "hsl": {
    "h": 236.25,
    "s": 47.863,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51553,
    "c": 0.16161,
    "h": 276.3
  },
  "luminance": 0.12834
}

Semantic roles & 50–950 ramp

primary
#5259C2
secondary
#D0CDA0
accent
#CF50D7
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5259C2

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

Preview Lab → · Contrast checker → · Palette generator →

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