#5262D5#5262D5

#5262D5 is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.6% C 0.176 H 273.2°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5262D5
RGBrgb(82, 98, 213)
HSLhsl(233, 61%, 58%)
HSVhsv(233, 62%, 84%)
CMYKcmyk(61.5%, 54%, 0%, 16.5%)
CIE-LABlab(46.09, 29.06, -61.23)
CIE-LCHlch(46.09, 67.78, 295.39°)
OKLaboklab(54.65% 0.0097 -0.1757)
OKLCHoklch(54.65% 0.176 273.2)
XYZxyz(19.8536, 15.3317, 64.8510)
Luminance0.1533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5262D5 #D5C552
analogous
#52A3D5 #5262D5 #8452D5
triadic
#5262D5 #D55262 #62D552
tetradic
#5262D5 #D552A3 #D5C552 #52D584
square
#5262D5 #D552A3 #D5C552 #52D584
split-complementary
#5262D5 #D58452 #A3D552
monochromatic
#222F8B #2E3FBC #5262D5 #838FE1 #B4BBED

Accessibility & contrast

On white

5.16
#5262D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#5262D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5262D5
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5262D5#FFFFFF#000000##FFFFFF
##5262D51.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1073D9
Deuteranopia (green-blind)
#0068D3
Tritanopia (blue-blind)
#007D92
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5262d5;
/* rgb */ color: rgb(82, 98, 213);
/* oklch */ color: oklch(54.6% 0.176 273.2);
Tailwind
colors: {
  custom: {
    50: '#8f8ee3',
    500: '#5262d5',
    950: '#000000',
  },
}
SCSS
$custom: #5262d5;
$custom-light: #8f8ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#5262d5",
  "rgb": {
    "r": 82,
    "g": 98,
    "b": 213
  },
  "hsl": {
    "h": 232.672,
    "s": 60.93,
    "l": 57.843
  },
  "oklch": {
    "l": 0.54645,
    "c": 0.17599,
    "h": 273.2
  },
  "luminance": 0.15333
}

Semantic roles & 50–950 ramp

primary
#5262D5
secondary
#DCD5A7
accent
#D044E4
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C15
muted
#7E7D84

Preview Lab

Preview with #5262D5

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

Preview Lab → · Contrast checker → · Palette generator →

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