#5262D3#5262D3

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

Color values

HEX#5262D3
RGBrgb(82, 98, 211)
HSLhsl(233, 59%, 57%)
HSVhsv(233, 61%, 83%)
CMYKcmyk(61.1%, 53.6%, 0%, 17.3%)
CIE-LABlab(45.95, 28.39, -60.31)
CIE-LCHlch(45.95, 66.65, 295.21°)
OKLaboklab(54.5% 0.0096 -0.173)
OKLCHoklch(54.5% 0.173 273.2)
XYZxyz(19.6013, 15.2308, 63.5223)
Luminance0.1523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5262D3 #D3C352
analogous
#52A3D3 #5262D3 #8252D3
triadic
#5262D3 #D35262 #62D352
tetradic
#5262D3 #D352A3 #D3C352 #52D382
square
#5262D3 #D352A3 #D3C352 #52D382
split-complementary
#5262D3 #D38252 #A3D352
monochromatic
#232F88 #2F40B9 #5262D3 #838EDF #B4BBEC

Accessibility & contrast

On white

5.19
#5262D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#5262D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5262D3
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5262D3#FFFFFF#000000##FFFFFF
##5262D31.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1673D7
Deuteranopia (green-blind)
#0067D1
Tritanopia (blue-blind)
#007C91
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5262d3;
/* rgb */ color: rgb(82, 98, 211);
/* oklch */ color: oklch(54.5% 0.173 273.2);
Tailwind
colors: {
  custom: {
    50: '#8f8ee1',
    500: '#5262d3',
    950: '#000000',
  },
}
SCSS
$custom: #5262d3;
$custom-light: #8f8ee1;
$custom-dark: #000000;
JSON
{
  "hex": "#5262d3",
  "rgb": {
    "r": 82,
    "g": 98,
    "b": 211
  },
  "hsl": {
    "h": 232.558,
    "s": 59.447,
    "l": 57.451
  },
  "oklch": {
    "l": 0.54499,
    "c": 0.17328,
    "h": 273.2
  },
  "luminance": 0.15232
}

Semantic roles & 50–950 ramp

primary
#5262D3
secondary
#DAD4A6
accent
#CF45E3
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5262D3

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

Preview Lab → · Contrast checker → · Palette generator →

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