#5261D4#5261D4

#5261D4 is a mid, vivid blue. Relative luminance 0.151; OKLCH L 54.4% C 0.176 H 273.5°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5261D4
RGBrgb(82, 97, 212)
HSLhsl(233, 60%, 58%)
HSVhsv(233, 61%, 83%)
CMYKcmyk(61.3%, 54.2%, 0%, 16.9%)
CIE-LABlab(45.76, 29.35, -61.18)
CIE-LCHlch(45.76, 67.85, 295.63°)
OKLaboklab(54.38% 0.0106 -0.1756)
OKLCHoklch(54.38% 0.176 273.5)
XYZxyz(19.6341, 15.0951, 64.1536)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5261D4 #D4C552
analogous
#52A2D4 #5261D4 #8452D4
triadic
#5261D4 #D45261 #61D452
tetradic
#5261D4 #D452A2 #D4C552 #52D484
square
#5261D4 #D452A2 #D4C552 #52D484
split-complementary
#5261D4 #D48452 #A2D452
monochromatic
#222E89 #2E3FBA #5261D4 #838EE0 #B4BBEC

Accessibility & contrast

On white

5.22
#5261D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#5261D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5261D4
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5261D4#FFFFFF#000000##FFFFFF
##5261D41.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C72D8
Deuteranopia (green-blind)
#0067D2
Tritanopia (blue-blind)
#007C91
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5261d4;
/* rgb */ color: rgb(82, 97, 212);
/* oklch */ color: oklch(54.4% 0.176 273.5);
Tailwind
colors: {
  custom: {
    50: '#8f8de2',
    500: '#5261d4',
    950: '#000000',
  },
}
SCSS
$custom: #5261d4;
$custom-light: #8f8de2;
$custom-dark: #000000;
JSON
{
  "hex": "#5261d4",
  "rgb": {
    "r": 82,
    "g": 97,
    "b": 212
  },
  "hsl": {
    "h": 233.077,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.54383,
    "c": 0.1759,
    "h": 273.5
  },
  "luminance": 0.15097
}

Semantic roles & 50–950 ramp

primary
#5261D4
secondary
#DBD5A7
accent
#D144E3
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5261D4

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

Preview Lab → · Contrast checker → · Palette generator →

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