#5261B4#5261B4

#5261B4 is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.2% C 0.131 H 273.3°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#5261B4
RGBrgb(82, 97, 180)
HSLhsl(231, 40%, 51%)
HSVhsv(231, 54%, 71%)
CMYKcmyk(54.4%, 46.1%, 0%, 29.4%)
CIE-LABlab(43.71, 18.66, -45.99)
CIE-LCHlch(43.71, 49.63, 292.08°)
OKLaboklab(52.17% 0.0076 -0.1309)
OKLCHoklch(52.17% 0.131 273.3)
XYZxyz(15.9899, 13.6374, 44.9609)
Luminance0.1364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5261B4 #B4A552
analogous
#5292B4 #5261B4 #7452B4
triadic
#5261B4 #B45261 #61B452
tetradic
#5261B4 #B45292 #B4A552 #52B474
square
#5261B4 #B45292 #B4A552 #52B474
split-complementary
#5261B4 #B47452 #92B452
monochromatic
#2A3361 #3D498C #5261B4 #7D88C7 #A7AFD9

Accessibility & contrast

On white

5.63
#5261B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#5261B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5261B4
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5261B4#FFFFFF#000000##FFFFFF
##5261B41.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C6CB7
Deuteranopia (green-blind)
#3063B2
Tritanopia (blue-blind)
#217382
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5261b4;
/* rgb */ color: rgb(82, 97, 180);
/* oklch */ color: oklch(52.2% 0.131 273.3);
Tailwind
colors: {
  custom: {
    50: '#8a8dcb',
    500: '#5261b4',
    950: '#000000',
  },
}
SCSS
$custom: #5261b4;
$custom-light: #8a8dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5261b4",
  "rgb": {
    "r": 82,
    "g": 97,
    "b": 180
  },
  "hsl": {
    "h": 230.816,
    "s": 39.516,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52172,
    "c": 0.13113,
    "h": 273.3
  },
  "luminance": 0.13639
}

Semantic roles & 50–950 ramp

primary
#5261B4
secondary
#C7C09B
accent
#BD58CF
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #5261B4

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

Preview Lab → · Contrast checker → · Palette generator →

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