#5261D2#5261D2

#5261D2 is a mid, vivid blue. Relative luminance 0.150; OKLCH L 54.2% C 0.173 H 273.5°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5261D2
RGBrgb(82, 97, 210)
HSLhsl(233, 59%, 57%)
HSVhsv(233, 61%, 82%)
CMYKcmyk(61%, 53.8%, 0%, 17.6%)
CIE-LABlab(45.63, 28.67, -60.26)
CIE-LCHlch(45.63, 66.73, 295.45°)
OKLaboklab(54.24% 0.0105 -0.1729)
OKLCHoklch(54.24% 0.173 273.5)
XYZxyz(19.3834, 14.9948, 62.8331)
Luminance0.1500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5261D2 #D2C352
analogous
#52A1D2 #5261D2 #8352D2
triadic
#5261D2 #D25261 #61D252
tetradic
#5261D2 #D252A1 #D2C352 #52D283
square
#5261D2 #D252A1 #D2C352 #52D283
split-complementary
#5261D2 #D28352 #A1D252
monochromatic
#232F87 #3040B7 #5261D2 #838DDF #B3BAEB

Accessibility & contrast

On white

5.25
#5261D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#5261D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5261D2
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5261D2#FFFFFF#000000##FFFFFF
##5261D21.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1372D6
Deuteranopia (green-blind)
#0067D0
Tritanopia (blue-blind)
#007B90
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5261d2;
/* rgb */ color: rgb(82, 97, 210);
/* oklch */ color: oklch(54.2% 0.173 273.5);
Tailwind
colors: {
  custom: {
    50: '#8e8de0',
    500: '#5261d2',
    950: '#000000',
  },
}
SCSS
$custom: #5261d2;
$custom-light: #8e8de0;
$custom-dark: #000000;
JSON
{
  "hex": "#5261d2",
  "rgb": {
    "r": 82,
    "g": 97,
    "b": 210
  },
  "hsl": {
    "h": 232.969,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.54236,
    "c": 0.17319,
    "h": 273.5
  },
  "luminance": 0.14996
}

Semantic roles & 50–950 ramp

primary
#5261D2
secondary
#DAD4A6
accent
#D046E2
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5261D2

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

Preview Lab → · Contrast checker → · Palette generator →

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