#5262C2#5262C2

#5262C2 is a mid, vivid blue. Relative luminance 0.144; OKLCH L 53.3% C 0.150 H 273.2°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#5262C2
RGBrgb(82, 98, 194)
HSLhsl(231, 48%, 54%)
HSVhsv(231, 58%, 76%)
CMYKcmyk(57.7%, 49.5%, 0%, 23.9%)
CIE-LABlab(44.83, 22.68, -52.33)
CIE-LCHlch(44.83, 57.03, 293.43°)
OKLaboklab(53.3% 0.0083 -0.1495)
OKLCHoklch(53.3% 0.15 273.2)
XYZxyz(17.5818, 14.4229, 52.8859)
Luminance0.1442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5262C2 #C2B252
analogous
#529AC2 #5262C2 #7A52C2
triadic
#5262C2 #C25262 #62C252
tetradic
#5262C2 #C2529A #C2B252 #52C27A
square
#5262C2 #C2529A #C2B252 #52C27A
split-complementary
#5262C2 #C27A52 #9AC252
monochromatic
#283372 #38479F #5262C2 #7F8BD2 #ACB4E2

Accessibility & contrast

On white

5.41
#5262C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#5262C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5262C2
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5262C2#FFFFFF#000000##FFFFFF
##5262C21.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#316FC5
Deuteranopia (green-blind)
#1E65C0
Tritanopia (blue-blind)
#007889
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5262c2;
/* rgb */ color: rgb(82, 98, 194);
/* oklch */ color: oklch(53.3% 0.150 273.2);
Tailwind
colors: {
  custom: {
    50: '#8c8ed5',
    500: '#5262c2',
    950: '#000000',
  },
}
SCSS
$custom: #5262c2;
$custom-light: #8c8ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#5262c2",
  "rgb": {
    "r": 82,
    "g": 98,
    "b": 194
  },
  "hsl": {
    "h": 231.429,
    "s": 47.863,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53302,
    "c": 0.14976,
    "h": 273.2
  },
  "luminance": 0.14424
}

Semantic roles & 50–950 ramp

primary
#5262C2
secondary
#D0C9A0
accent
#C450D7
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C14
muted
#7E7D83

Preview Lab

Preview with #5262C2

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

Preview Lab → · Contrast checker → · Palette generator →

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