#5262D7#5262D7

#5262D7 is a mid, vivid blue. Relative luminance 0.154; OKLCH L 54.8% C 0.179 H 273.2°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5262D7
RGBrgb(82, 98, 215)
HSLhsl(233, 62%, 58%)
HSVhsv(233, 62%, 84%)
CMYKcmyk(61.9%, 54.4%, 0%, 15.7%)
CIE-LABlab(46.22, 29.73, -62.15)
CIE-LCHlch(46.22, 68.89, 295.57°)
OKLaboklab(54.79% 0.0098 -0.1784)
OKLCHoklch(54.79% 0.179 273.2)
XYZxyz(20.1090, 15.4338, 66.1961)
Luminance0.1543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5262D7 #D7C752
analogous
#52A4D7 #5262D7 #8452D7
triadic
#5262D7 #D75262 #62D752
tetradic
#5262D7 #D752A4 #D7C752 #52D784
square
#5262D7 #D752A4 #D7C752 #52D784
split-complementary
#5262D7 #D78452 #A4D752
monochromatic
#212E8E #2C3EC0 #5262D7 #848FE2 #B5BCEE

Accessibility & contrast

On white

5.14
#5262D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#5262D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5262D7
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5262D7#FFFFFF#000000##FFFFFF
##5262D71.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0774DB
Deuteranopia (green-blind)
#0068D5
Tritanopia (blue-blind)
#007E93
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5262d7;
/* rgb */ color: rgb(82, 98, 215);
/* oklch */ color: oklch(54.8% 0.179 273.2);
Tailwind
colors: {
  custom: {
    50: '#8f8ee4',
    500: '#5262d7',
    950: '#000000',
  },
}
SCSS
$custom: #5262d7;
$custom-light: #8f8ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#5262d7",
  "rgb": {
    "r": 82,
    "g": 98,
    "b": 215
  },
  "hsl": {
    "h": 232.782,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.54792,
    "c": 0.17869,
    "h": 273.2
  },
  "luminance": 0.15435
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5262D7

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

Preview Lab → · Contrast checker → · Palette generator →

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