#5261D8#5261D8

#5261D8 is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.7% C 0.181 H 273.4°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5261D8
RGBrgb(82, 97, 216)
HSLhsl(233, 63%, 58%)
HSVhsv(233, 62%, 85%)
CMYKcmyk(62%, 55.1%, 0%, 15.3%)
CIE-LABlab(46.04, 30.69, -63.01)
CIE-LCHlch(46.04, 70.09, 295.97°)
OKLaboklab(54.68% 0.0108 -0.181)
OKLCHoklch(54.68% 0.181 273.4)
XYZxyz(20.1449, 15.2994, 66.8439)
Luminance0.1530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5261D8 #D8C952
analogous
#52A4D8 #5261D8 #8652D8
triadic
#5261D8 #D85261 #61D852
tetradic
#5261D8 #D852A4 #D8C952 #52D886
square
#5261D8 #D852A4 #D8C952 #52D886
split-complementary
#5261D8 #D88652 #A4D852
monochromatic
#202D8F #2C3CC1 #5261D8 #848FE3 #B6BCEF

Accessibility & contrast

On white

5.17
#5261D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#5261D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5261D8
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5261D8#FFFFFF#000000##FFFFFF
##5261D81.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DC
Deuteranopia (green-blind)
#0067D6
Tritanopia (blue-blind)
#007D93
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5261d8;
/* rgb */ color: rgb(82, 97, 216);
/* oklch */ color: oklch(54.7% 0.181 273.4);
Tailwind
colors: {
  custom: {
    50: '#8f8de5',
    500: '#5261d8',
    950: '#000000',
  },
}
SCSS
$custom: #5261d8;
$custom-light: #8f8de5;
$custom-dark: #000000;
JSON
{
  "hex": "#5261d8",
  "rgb": {
    "r": 82,
    "g": 97,
    "b": 216
  },
  "hsl": {
    "h": 233.284,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.54679,
    "c": 0.18129,
    "h": 273.4
  },
  "luminance": 0.15301
}

Semantic roles & 50–950 ramp

primary
#5261D8
secondary
#DDD8A8
accent
#D442E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5261D8

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

Preview Lab → · Contrast checker → · Palette generator →

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