#5261D5#5261D5

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

Color values

HEX#5261D5
RGBrgb(82, 97, 213)
HSLhsl(233, 61%, 58%)
HSVhsv(233, 62%, 84%)
CMYKcmyk(61.5%, 54.5%, 0%, 16.5%)
CIE-LABlab(45.83, 29.68, -61.64)
CIE-LCHlch(45.83, 68.41, 295.71°)
OKLaboklab(54.46% 0.0107 -0.1769)
OKLCHoklch(54.46% 0.177 273.4)
XYZxyz(19.7606, 15.1457, 64.8200)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5261D5 #D5C652
analogous
#52A2D5 #5261D5 #8552D5
triadic
#5261D5 #D55261 #61D552
tetradic
#5261D5 #D552A2 #D5C652 #52D585
square
#5261D5 #D552A2 #D5C652 #52D585
split-complementary
#5261D5 #D58552 #A2D552
monochromatic
#222E8B #2E3EBC #5261D5 #838EE1 #B4BBED

Accessibility & contrast

On white

5.21
#5261D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#5261D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5261D5
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5261D5#FFFFFF#000000##FFFFFF
##5261D51.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0872D9
Deuteranopia (green-blind)
#0067D3
Tritanopia (blue-blind)
#007C91
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5261d5;
/* rgb */ color: rgb(82, 97, 213);
/* oklch */ color: oklch(54.5% 0.177 273.4);
Tailwind
colors: {
  custom: {
    50: '#8f8de3',
    500: '#5261d5',
    950: '#000000',
  },
}
SCSS
$custom: #5261d5;
$custom-light: #8f8de3;
$custom-dark: #000000;
JSON
{
  "hex": "#5261d5",
  "rgb": {
    "r": 82,
    "g": 97,
    "b": 213
  },
  "hsl": {
    "h": 233.13,
    "s": 60.93,
    "l": 57.843
  },
  "oklch": {
    "l": 0.54456,
    "c": 0.17725,
    "h": 273.4
  },
  "luminance": 0.15147
}

Semantic roles & 50–950 ramp

primary
#5261D5
secondary
#DCD6A7
accent
#D244E4
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C15
muted
#7E7D84

Preview Lab

Preview with #5261D5

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

Preview Lab → · Contrast checker → · Palette generator →

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