#5261D1#5261D1

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

Color values

HEX#5261D1
RGBrgb(82, 97, 209)
HSLhsl(233, 58%, 57%)
HSVhsv(233, 61%, 82%)
CMYKcmyk(60.8%, 53.6%, 0%, 18%)
CIE-LABlab(45.56, 28.34, -59.79)
CIE-LCHlch(45.56, 66.17, 295.36°)
OKLaboklab(54.16% 0.0105 -0.1715)
OKLCHoklch(54.16% 0.172 273.5)
XYZxyz(19.2592, 14.9451, 62.1790)
Luminance0.1495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5261D1 #D1C252
analogous
#52A1D1 #5261D1 #8252D1
triadic
#5261D1 #D15261 #61D152
tetradic
#5261D1 #D152A1 #D1C252 #52D182
square
#5261D1 #D152A1 #D1C252 #52D182
split-complementary
#5261D1 #D18252 #A1D152
monochromatic
#232F85 #3040B6 #5261D1 #828DDE #B3B9EB

Accessibility & contrast

On white

5.26
#5261D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#5261D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5261D1
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5261D1#FFFFFF#000000##FFFFFF
##5261D11.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1672D5
Deuteranopia (green-blind)
#0067CF
Tritanopia (blue-blind)
#007B90
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5261d1;
/* rgb */ color: rgb(82, 97, 209);
/* oklch */ color: oklch(54.2% 0.172 273.5);
Tailwind
colors: {
  custom: {
    50: '#8e8de0',
    500: '#5261d1',
    950: '#000000',
  },
}
SCSS
$custom: #5261d1;
$custom-light: #8e8de0;
$custom-dark: #000000;
JSON
{
  "hex": "#5261d1",
  "rgb": {
    "r": 82,
    "g": 97,
    "b": 209
  },
  "hsl": {
    "h": 232.913,
    "s": 57.991,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54164,
    "c": 0.17183,
    "h": 273.5
  },
  "luminance": 0.14947
}

Semantic roles & 50–950 ramp

primary
#5261D1
secondary
#D9D3A6
accent
#CF47E1
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5261D1

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

Preview Lab → · Contrast checker → · Palette generator →

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