#5261CF#5261CF

#5261CF is a mid, vivid blue. Relative luminance 0.148; OKLCH L 54.0% C 0.169 H 273.5°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#5261CF
RGBrgb(82, 97, 207)
HSLhsl(233, 57%, 57%)
HSVhsv(233, 60%, 81%)
CMYKcmyk(60.4%, 53.1%, 0%, 18.8%)
CIE-LABlab(45.42, 27.66, -58.87)
CIE-LCHlch(45.42, 65.04, 295.17°)
OKLaboklab(54.02% 0.0104 -0.1688)
OKLCHoklch(54.02% 0.169 273.5)
XYZxyz(19.0131, 14.8467, 60.8831)
Luminance0.1485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5261CF #CFC052
analogous
#52A0CF #5261CF #8252CF
triadic
#5261CF #CF5261 #61CF52
tetradic
#5261CF #CF52A0 #CFC052 #52CF82
square
#5261CF #CF52A0 #CFC052 #52CF82
split-complementary
#5261CF #CF8252 #A0CF52
monochromatic
#242F82 #3141B2 #5261CF #828DDC #B2B9EA

Accessibility & contrast

On white

5.29
#5261CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#5261CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5261CF
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5261CF#FFFFFF#000000##FFFFFF
##5261CF1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B71D3
Deuteranopia (green-blind)
#0066CD
Tritanopia (blue-blind)
#007B8F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5261cf;
/* rgb */ color: rgb(82, 97, 207);
/* oklch */ color: oklch(54.0% 0.169 273.5);
Tailwind
colors: {
  custom: {
    50: '#8e8dde',
    500: '#5261cf',
    950: '#000000',
  },
}
SCSS
$custom: #5261cf;
$custom-light: #8e8dde;
$custom-dark: #000000;
JSON
{
  "hex": "#5261cf",
  "rgb": {
    "r": 82,
    "g": 97,
    "b": 207
  },
  "hsl": {
    "h": 232.8,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.54019,
    "c": 0.1691,
    "h": 273.5
  },
  "luminance": 0.14848
}

Semantic roles & 50–950 ramp

primary
#5261CF
secondary
#D8D2A5
accent
#CE48E0
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5261CF

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

Preview Lab → · Contrast checker → · Palette generator →

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