#5262D2#5262D2

#5262D2 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.4% C 0.172 H 273.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5262D2
RGBrgb(82, 98, 210)
HSLhsl(233, 59%, 57%)
HSVhsv(233, 61%, 82%)
CMYKcmyk(61%, 53.3%, 0%, 17.6%)
CIE-LABlab(45.88, 28.05, -59.85)
CIE-LCHlch(45.88, 66.09, 295.11°)
OKLaboklab(54.43% 0.0096 -0.1716)
OKLCHoklch(54.43% 0.172 273.2)
XYZxyz(19.4764, 15.1808, 62.8641)
Luminance0.1518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5262D2 #D2C252
analogous
#52A2D2 #5262D2 #8252D2
triadic
#5262D2 #D25262 #62D252
tetradic
#5262D2 #D252A2 #D2C252 #52D282
square
#5262D2 #D252A2 #D2C252 #52D282
split-complementary
#5262D2 #D28252 #A2D252
monochromatic
#232F87 #3041B7 #5262D2 #838EDF #B3BAEB

Accessibility & contrast

On white

5.20
#5262D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#5262D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5262D2
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5262D2#FFFFFF#000000##FFFFFF
##5262D21.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1872D6
Deuteranopia (green-blind)
#0067D0
Tritanopia (blue-blind)
#007C90
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5262d2;
/* rgb */ color: rgb(82, 98, 210);
/* oklch */ color: oklch(54.4% 0.172 273.2);
Tailwind
colors: {
  custom: {
    50: '#8e8ee0',
    500: '#5262d2',
    950: '#000000',
  },
}
SCSS
$custom: #5262d2;
$custom-light: #8e8ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#5262d2",
  "rgb": {
    "r": 82,
    "g": 98,
    "b": 210
  },
  "hsl": {
    "h": 232.5,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.54427,
    "c": 0.17192,
    "h": 273.2
  },
  "luminance": 0.15182
}

Semantic roles & 50–950 ramp

primary
#5262D2
secondary
#DAD3A6
accent
#CE46E2
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5262D2

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

Preview Lab → · Contrast checker → · Palette generator →

#5262D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva