#5261C8#5261C8

#5261C8 is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.5% C 0.159 H 273.5°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5261C8
RGBrgb(82, 97, 200)
HSLhsl(232, 52%, 55%)
HSVhsv(232, 59%, 78%)
CMYKcmyk(59%, 51.5%, 0%, 21.6%)
CIE-LABlab(44.96, 25.31, -55.59)
CIE-LCHlch(44.96, 61.08, 294.48°)
OKLaboklab(53.52% 0.0099 -0.1592)
OKLCHoklch(53.52% 0.159 273.5)
XYZxyz(18.1763, 14.5120, 56.4756)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5261C8 #C8B952
analogous
#529CC8 #5261C8 #7E52C8
triadic
#5261C8 #C85261 #61C852
tetradic
#5261C8 #C8529C #C8B952 #52C87E
square
#5261C8 #C8529C #C8B952 #52C87E
split-complementary
#5261C8 #C87E52 #9CC852
monochromatic
#273179 #3544A8 #5261C8 #808BD7 #AFB6E6

Accessibility & contrast

On white

5.38
#5261C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#5261C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5261C8
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5261C8#FFFFFF#000000##FFFFFF
##5261C81.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2770CC
Deuteranopia (green-blind)
#0765C6
Tritanopia (blue-blind)
#00798B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5261c8;
/* rgb */ color: rgb(82, 97, 200);
/* oklch */ color: oklch(53.5% 0.159 273.5);
Tailwind
colors: {
  custom: {
    50: '#8d8dd9',
    500: '#5261c8',
    950: '#000000',
  },
}
SCSS
$custom: #5261c8;
$custom-light: #8d8dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#5261c8",
  "rgb": {
    "r": 82,
    "g": 97,
    "b": 200
  },
  "hsl": {
    "h": 232.373,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.5352,
    "c": 0.15945,
    "h": 273.5
  },
  "luminance": 0.14513
}

Semantic roles & 50–950 ramp

primary
#5261C8
secondary
#D4CDA2
accent
#C94DDB
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5261C8

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

Preview Lab → · Contrast checker → · Palette generator →

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