#5261D7#5261D7

#5261D7 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.6% C 0.180 H 273.4°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#5261D7
RGBrgb(82, 97, 215)
HSLhsl(233, 62%, 58%)
HSVhsv(233, 62%, 84%)
CMYKcmyk(61.9%, 54.9%, 0%, 15.7%)
CIE-LABlab(45.97, 30.35, -62.55)
CIE-LCHlch(45.97, 69.53, 295.89°)
OKLaboklab(54.6% 0.0107 -0.1796)
OKLCHoklch(54.6% 0.18 273.4)
XYZxyz(20.0161, 15.2479, 66.1651)
Luminance0.1525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5261D7 #D7C852
analogous
#52A3D7 #5261D7 #8552D7
triadic
#5261D7 #D75261 #61D752
tetradic
#5261D7 #D752A3 #D7C852 #52D785
square
#5261D7 #D752A3 #D7C852 #52D785
split-complementary
#5261D7 #D78552 #A3D752
monochromatic
#212D8E #2C3DC0 #5261D7 #848EE2 #B5BCEE

Accessibility & contrast

On white

5.19
#5261D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#5261D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5261D7
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5261D7#FFFFFF#000000##FFFFFF
##5261D71.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DB
Deuteranopia (green-blind)
#0067D5
Tritanopia (blue-blind)
#007D92
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5261d7;
/* rgb */ color: rgb(82, 97, 215);
/* oklch */ color: oklch(54.6% 0.180 273.4);
Tailwind
colors: {
  custom: {
    50: '#8f8de4',
    500: '#5261d7',
    950: '#000000',
  },
}
SCSS
$custom: #5261d7;
$custom-light: #8f8de4;
$custom-dark: #000000;
JSON
{
  "hex": "#5261d7",
  "rgb": {
    "r": 82,
    "g": 97,
    "b": 215
  },
  "hsl": {
    "h": 233.233,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.54604,
    "c": 0.17995,
    "h": 273.4
  },
  "luminance": 0.1525
}

Semantic roles & 50–950 ramp

primary
#5261D7
secondary
#DDD7A8
accent
#D342E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5261D7

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

Preview Lab → · Contrast checker → · Palette generator →

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