#5262C1#5262C1

#5262C1 is a mid, vivid blue. Relative luminance 0.144; OKLCH L 53.2% C 0.148 H 273.1°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#5262C1
RGBrgb(82, 98, 193)
HSLhsl(231, 47%, 54%)
HSVhsv(231, 58%, 76%)
CMYKcmyk(57.5%, 49.2%, 0%, 24.3%)
CIE-LABlab(44.77, 22.34, -51.85)
CIE-LCHlch(44.77, 56.46, 293.31°)
OKLaboklab(53.24% 0.0081 -0.1481)
OKLCHoklch(53.24% 0.148 273.1)
XYZxyz(17.4698, 14.3782, 52.2964)
Luminance0.1438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5262C1 #C1B152
analogous
#529AC1 #5262C1 #7A52C1
triadic
#5262C1 #C15262 #62C152
tetradic
#5262C1 #C1529A #C1B152 #52C17A
square
#5262C1 #C1529A #C1B152 #52C17A
split-complementary
#5262C1 #C17A52 #9AC152
monochromatic
#283370 #38479D #5262C1 #7F8BD1 #ACB4E1

Accessibility & contrast

On white

5.42
#5262C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5262C1
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5262C1#FFFFFF#000000##FFFFFF
##5262C11.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#326FC4
Deuteranopia (green-blind)
#2065BF
Tritanopia (blue-blind)
#047788
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5262c1;
/* rgb */ color: rgb(82, 98, 193);
/* oklch */ color: oklch(53.2% 0.148 273.1);
Tailwind
colors: {
  custom: {
    50: '#8c8ed4',
    500: '#5262c1',
    950: '#000000',
  },
}
SCSS
$custom: #5262c1;
$custom-light: #8c8ed4;
$custom-dark: #000000;
JSON
{
  "hex": "#5262c1",
  "rgb": {
    "r": 82,
    "g": 98,
    "b": 193
  },
  "hsl": {
    "h": 231.351,
    "s": 47.234,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53235,
    "c": 0.14835,
    "h": 273.1
  },
  "luminance": 0.14379
}

Semantic roles & 50–950 ramp

primary
#5262C1
secondary
#CFC8A0
accent
#C451D7
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C14
muted
#7E7D83

Preview Lab

Preview with #5262C1

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

Preview Lab → · Contrast checker → · Palette generator →

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