#5262D1#5262D1

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

Color values

HEX#5262D1
RGBrgb(82, 98, 209)
HSLhsl(232, 58%, 57%)
HSVhsv(232, 61%, 82%)
CMYKcmyk(60.8%, 53.1%, 0%, 18%)
CIE-LABlab(45.81, 27.71, -59.38)
CIE-LCHlch(45.81, 65.53, 295.02°)
OKLaboklab(54.36% 0.0095 -0.1703)
OKLCHoklch(54.36% 0.171 273.2)
XYZxyz(19.3522, 15.1311, 62.2100)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5262D1 #D1C152
analogous
#52A2D1 #5262D1 #8252D1
triadic
#5262D1 #D15262 #62D152
tetradic
#5262D1 #D152A2 #D1C152 #52D182
square
#5262D1 #D152A2 #D1C152 #52D182
split-complementary
#5262D1 #D18252 #A2D152
monochromatic
#233085 #3041B6 #5262D1 #828EDE #B3BAEB

Accessibility & contrast

On white

5.22
#5262D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#5262D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5262D1
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5262D1#FFFFFF#000000##FFFFFF
##5262D11.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B72D5
Deuteranopia (green-blind)
#0067CF
Tritanopia (blue-blind)
#007C90
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5262d1;
/* rgb */ color: rgb(82, 98, 209);
/* oklch */ color: oklch(54.4% 0.171 273.2);
Tailwind
colors: {
  custom: {
    50: '#8e8ee0',
    500: '#5262d1',
    950: '#000000',
  },
}
SCSS
$custom: #5262d1;
$custom-light: #8e8ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#5262d1",
  "rgb": {
    "r": 82,
    "g": 98,
    "b": 209
  },
  "hsl": {
    "h": 232.441,
    "s": 57.991,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54355,
    "c": 0.17055,
    "h": 273.2
  },
  "luminance": 0.15133
}

Semantic roles & 50–950 ramp

primary
#5262D1
secondary
#D9D3A6
accent
#CE47E1
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5262D1

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

Preview Lab → · Contrast checker → · Palette generator →

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