#5262D8#5262D8

#5262D8 is a mid, vivid blue. Relative luminance 0.155; OKLCH L 54.9% C 0.180 H 273.1°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#5262D8
RGBrgb(82, 98, 216)
HSLhsl(233, 63%, 58%)
HSVhsv(233, 62%, 85%)
CMYKcmyk(62%, 54.6%, 0%, 15.3%)
CIE-LABlab(46.29, 30.07, -62.61)
CIE-LCHlch(46.29, 69.45, 295.65°)
OKLaboklab(54.87% 0.0099 -0.1798)
OKLCHoklch(54.87% 0.18 273.1)
XYZxyz(20.2379, 15.4854, 66.8749)
Luminance0.1549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5262D8 #D8C852
analogous
#52A5D8 #5262D8 #8552D8
triadic
#5262D8 #D85262 #62D852
tetradic
#5262D8 #D852A5 #D8C852 #52D885
square
#5262D8 #D852A5 #D8C852 #52D885
split-complementary
#5262D8 #D88552 #A5D852
monochromatic
#202E8F #2C3DC1 #5262D8 #848FE3 #B6BDEF

Accessibility & contrast

On white

5.13
#5262D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#5262D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5262D8
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5262D8#FFFFFF#000000##FFFFFF
##5262D81.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0274DC
Deuteranopia (green-blind)
#0068D6
Tritanopia (blue-blind)
#007E93
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5262d8;
/* rgb */ color: rgb(82, 98, 216);
/* oklch */ color: oklch(54.9% 0.180 273.1);
Tailwind
colors: {
  custom: {
    50: '#8f8ee5',
    500: '#5262d8',
    950: '#000000',
  },
}
SCSS
$custom: #5262d8;
$custom-light: #8f8ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#5262d8",
  "rgb": {
    "r": 82,
    "g": 98,
    "b": 216
  },
  "hsl": {
    "h": 232.836,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.54866,
    "c": 0.18004,
    "h": 273.1
  },
  "luminance": 0.15487
}

Semantic roles & 50–950 ramp

primary
#5262D8
secondary
#DDD7A8
accent
#D342E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5262D8

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

Preview Lab → · Contrast checker → · Palette generator →

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