#5261A2#5261A2

#5261A2 is a mid, moderate blue. Relative luminance 0.130; OKLCH L 51.1% C 0.105 H 272.4°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#5261A2
RGBrgb(82, 97, 162)
HSLhsl(229, 33%, 48%)
HSVhsv(229, 49%, 64%)
CMYKcmyk(49.4%, 40.1%, 0%, 36.5%)
CIE-LABlab(42.69, 12.80, -37.01)
CIE-LCHlch(42.69, 39.16, 289.08°)
OKLaboklab(51.06% 0.0044 -0.1046)
OKLCHoklch(51.06% 0.105 272.4)
XYZxyz(14.2739, 12.9510, 35.9231)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5261A2 #A29352
analogous
#5289A2 #5261A2 #6B52A2
triadic
#5261A2 #A25261 #61A252
tetradic
#5261A2 #A25289 #A29352 #52A26B
square
#5261A2 #A25289 #A29352 #52A26B
split-complementary
#5261A2 #A26B52 #89A252
monochromatic
#293051 #3D4979 #5261A2 #7784BA #A0A8CF

Accessibility & contrast

On white

5.85
#5261A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#5261A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5261A2
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5261A2#FFFFFF#000000##FFFFFF
##5261A21.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4868A5
Deuteranopia (green-blind)
#4062A1
Tritanopia (blue-blind)
#326F79
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5261a2;
/* rgb */ color: rgb(82, 97, 162);
/* oklch */ color: oklch(51.1% 0.105 272.4);
Tailwind
colors: {
  custom: {
    50: '#878dbe',
    500: '#5261a2',
    950: '#000000',
  },
}
SCSS
$custom: #5261a2;
$custom-light: #878dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5261a2",
  "rgb": {
    "r": 82,
    "g": 97,
    "b": 162
  },
  "hsl": {
    "h": 228.75,
    "s": 32.787,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51061,
    "c": 0.1047,
    "h": 272.4
  },
  "luminance": 0.12952
}

Semantic roles & 50–950 ramp

primary
#5261A2
secondary
#BCB494
accent
#B55FC9
background
#F8F8FB
surface
#F0F0F7
border
#CBCBD0
text
#0C0C12
muted
#7D7D81

Preview Lab

Preview with #5261A2

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

Preview Lab → · Contrast checker → · Palette generator →

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