#5261D6#5261D6

#5261D6 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.5% C 0.179 H 273.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5261D6
RGBrgb(82, 97, 214)
HSLhsl(233, 62%, 58%)
HSVhsv(233, 62%, 84%)
CMYKcmyk(61.7%, 54.7%, 0%, 16.1%)
CIE-LABlab(45.90, 30.02, -62.10)
CIE-LCHlch(45.90, 68.97, 295.80°)
OKLaboklab(54.53% 0.0107 -0.1783)
OKLCHoklch(54.53% 0.179 273.4)
XYZxyz(19.8880, 15.1966, 65.4905)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5261D6 #D6C752
analogous
#52A3D6 #5261D6 #8552D6
triadic
#5261D6 #D65261 #61D652
tetradic
#5261D6 #D652A3 #D6C752 #52D685
square
#5261D6 #D652A3 #D6C752 #52D685
split-complementary
#5261D6 #D68552 #A3D652
monochromatic
#212D8C #2D3DBE #5261D6 #838EE2 #B5BBED

Accessibility & contrast

On white

5.20
#5261D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#5261D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5261D6
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5261D6#FFFFFF#000000##FFFFFF
##5261D61.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0373DA
Deuteranopia (green-blind)
#0067D4
Tritanopia (blue-blind)
#007D92
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5261d6;
/* rgb */ color: rgb(82, 97, 214);
/* oklch */ color: oklch(54.5% 0.179 273.4);
Tailwind
colors: {
  custom: {
    50: '#8f8de3',
    500: '#5261d6',
    950: '#000000',
  },
}
SCSS
$custom: #5261d6;
$custom-light: #8f8de3;
$custom-dark: #000000;
JSON
{
  "hex": "#5261d6",
  "rgb": {
    "r": 82,
    "g": 97,
    "b": 214
  },
  "hsl": {
    "h": 233.182,
    "s": 61.682,
    "l": 58.039
  },
  "oklch": {
    "l": 0.5453,
    "c": 0.1786,
    "h": 273.4
  },
  "luminance": 0.15198
}

Semantic roles & 50–950 ramp

primary
#5261D6
secondary
#DCD6A8
accent
#D243E5
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5261D6

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

Preview Lab → · Contrast checker → · Palette generator →

#5261D6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva