#5262CB#5262CB

#5262CB is a mid, vivid blue. Relative luminance 0.148; OKLCH L 53.9% C 0.162 H 273.2°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#5262CB
RGBrgb(82, 98, 203)
HSLhsl(232, 54%, 56%)
HSVhsv(232, 60%, 80%)
CMYKcmyk(59.6%, 51.7%, 0%, 20.4%)
CIE-LABlab(45.41, 25.69, -56.59)
CIE-LCHlch(45.41, 62.15, 294.42°)
OKLaboklab(53.93% 0.0091 -0.1621)
OKLCHoklch(53.93% 0.162 273.2)
XYZxyz(18.6233, 14.8395, 58.3713)
Luminance0.1484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5262CB #CBBB52
analogous
#529ECB #5262CB #7E52CB
triadic
#5262CB #CB5262 #62CB52
tetradic
#5262CB #CB529E #CBBB52 #52CB7E
square
#5262CB #CB529E #CBBB52 #52CB7E
split-complementary
#5262CB #CB7E52 #9ECB52
monochromatic
#26317D #3444AC #5262CB #818DD9 #B0B7E7

Accessibility & contrast

On white

5.29
#5262CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#5262CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5262CB
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5262CB#FFFFFF#000000##FFFFFF
##5262CB1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2671CF
Deuteranopia (green-blind)
#0066C9
Tritanopia (blue-blind)
#007A8D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5262cb;
/* rgb */ color: rgb(82, 98, 203);
/* oklch */ color: oklch(53.9% 0.162 273.2);
Tailwind
colors: {
  custom: {
    50: '#8d8edb',
    500: '#5262cb',
    950: '#000000',
  },
}
SCSS
$custom: #5262cb;
$custom-light: #8d8edb;
$custom-dark: #000000;
JSON
{
  "hex": "#5262cb",
  "rgb": {
    "r": 82,
    "g": 98,
    "b": 203
  },
  "hsl": {
    "h": 232.066,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.53927,
    "c": 0.16231,
    "h": 273.2
  },
  "luminance": 0.14841
}

Semantic roles & 50–950 ramp

primary
#5262CB
secondary
#D5CFA3
accent
#CA4BDD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5262CB

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

Preview Lab → · Contrast checker → · Palette generator →

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