#5261CB#5261CB

#5261CB is a mid, vivid blue. Relative luminance 0.147; OKLCH L 53.7% C 0.164 H 273.5°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5261CB
RGBrgb(82, 97, 203)
HSLhsl(233, 54%, 56%)
HSVhsv(233, 60%, 80%)
CMYKcmyk(59.6%, 52.2%, 0%, 20.4%)
CIE-LABlab(45.16, 26.32, -57.00)
CIE-LCHlch(45.16, 62.78, 294.79°)
OKLaboklab(53.73% 0.0101 -0.1633)
OKLCHoklch(53.73% 0.164 273.5)
XYZxyz(18.5303, 14.6536, 58.3403)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5261CB #CBBC52
analogous
#529DCB #5261CB #7F52CB
triadic
#5261CB #CB5261 #61CB52
tetradic
#5261CB #CB529D #CBBC52 #52CB7F
square
#5261CB #CB529D #CBBC52 #52CB7F
split-complementary
#5261CB #CB7F52 #9DCB52
monochromatic
#26307D #3443AC #5261CB #818CD9 #B0B7E7

Accessibility & contrast

On white

5.34
#5261CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#5261CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5261CB
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5261CB#FFFFFF#000000##FFFFFF
##5261CB1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2270CF
Deuteranopia (green-blind)
#0066C9
Tritanopia (blue-blind)
#00798D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5261cb;
/* rgb */ color: rgb(82, 97, 203);
/* oklch */ color: oklch(53.7% 0.164 273.5);
Tailwind
colors: {
  custom: {
    50: '#8d8ddb',
    500: '#5261cb',
    950: '#000000',
  },
}
SCSS
$custom: #5261cb;
$custom-light: #8d8ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#5261cb",
  "rgb": {
    "r": 82,
    "g": 97,
    "b": 203
  },
  "hsl": {
    "h": 232.562,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.53733,
    "c": 0.1636,
    "h": 273.5
  },
  "luminance": 0.14655
}

Semantic roles & 50–950 ramp

primary
#5261CB
secondary
#D5CFA3
accent
#CB4BDD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5261CB

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

Preview Lab → · Contrast checker → · Palette generator →

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