#5262BF#5262BF

#5262BF is a mid, vivid blue. Relative luminance 0.143; OKLCH L 53.1% C 0.146 H 273.1°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#5262BF
RGBrgb(82, 98, 191)
HSLhsl(231, 46%, 54%)
HSVhsv(231, 57%, 75%)
CMYKcmyk(57.1%, 48.7%, 0%, 25.1%)
CIE-LABlab(44.65, 21.68, -50.89)
CIE-LCHlch(44.65, 55.32, 293.07°)
OKLaboklab(53.1% 0.0079 -0.1453)
OKLCHoklch(53.1% 0.146 273.1)
XYZxyz(17.2483, 14.2895, 51.1294)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5262BF #BFAF52
analogous
#5298BF #5262BF #7852BF
triadic
#5262BF #BF5262 #62BF52
tetradic
#5262BF #BF5298 #BFAF52 #52BF78
square
#5262BF #BF5298 #BFAF52 #52BF78
split-complementary
#5262BF #BF7852 #98BF52
monochromatic
#29336E #39479B #5262BF #7F8BD0 #ABB3E0

Accessibility & contrast

On white

5.44
#5262BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#5262BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5262BF
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5262BF#FFFFFF#000000##FFFFFF
##5262BF1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#346EC2
Deuteranopia (green-blind)
#2465BD
Tritanopia (blue-blind)
#0B7787
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5262bf;
/* rgb */ color: rgb(82, 98, 191);
/* oklch */ color: oklch(53.1% 0.146 273.1);
Tailwind
colors: {
  custom: {
    50: '#8b8ed3',
    500: '#5262bf',
    950: '#000000',
  },
}
SCSS
$custom: #5262bf;
$custom-light: #8b8ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#5262bf",
  "rgb": {
    "r": 82,
    "g": 98,
    "b": 191
  },
  "hsl": {
    "h": 231.193,
    "s": 45.992,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53099,
    "c": 0.14553,
    "h": 273.1
  },
  "luminance": 0.14291
}

Semantic roles & 50–950 ramp

primary
#5262BF
secondary
#CEC79F
accent
#C252D6
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C14
muted
#7E7D83

Preview Lab

Preview with #5262BF

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

Preview Lab → · Contrast checker → · Palette generator →

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