#5297FE#5297FE

#5297FE is a light, vivid blue. Relative luminance 0.311; OKLCH L 68.0% C 0.168 H 258.3°. Best body text is #000000 at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#5297FE
RGBrgb(82, 151, 254)
HSLhsl(216, 99%, 66%)
HSVhsv(216, 68%, 100%)
CMYKcmyk(67.7%, 40.6%, 0%, 0.4%)
CIE-LABlab(62.57, 10.70, -57.65)
CIE-LCHlch(62.57, 58.64, 280.51°)
OKLaboklab(68.04% -0.034 -0.1645)
OKLCHoklch(68.04% 0.168 258.3)
XYZxyz(32.4292, 31.0795, 98.0366)
Luminance0.3108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5297FE #FEB952
analogous
#52EDFE #5297FE #6352FE
triadic
#5297FE #FE5297 #97FE52
tetradic
#5297FE #FE52ED #FEB952 #52FE63
square
#5297FE #FE52ED #FEB952 #52FE63
split-complementary
#5297FE #FE6352 #EDFE52
monochromatic
#0156D4 #1572FE #5297FE #8FBCFE #CCE0FF

Accessibility & contrast

On white

2.91
#5297FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.22
#5297FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5297FE
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5297FE#FFFFFF#000000##000000
##5297FE1.002.917.227.22
#FFFFFF2.911.0021.0021.00
#0000007.2221.001.001.00
##0000007.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#67A0FF
Deuteranopia (green-blind)
#4C90FC
Tritanopia (blue-blind)
#00AFBE
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5297fe;
/* rgb */ color: rgb(82, 151, 254);
/* oklch */ color: oklch(68.0% 0.168 258.3);
Tailwind
colors: {
  custom: {
    50: '#94b5ff',
    500: '#5297fe',
    950: '#000000',
  },
}
SCSS
$custom: #5297fe;
$custom-light: #94b5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5297fe",
  "rgb": {
    "r": 82,
    "g": 151,
    "b": 254
  },
  "hsl": {
    "h": 215.93,
    "s": 98.851,
    "l": 65.882
  },
  "oklch": {
    "l": 0.6804,
    "c": 0.16796,
    "h": 258.3
  },
  "luminance": 0.31083
}

Semantic roles & 50–950 ramp

primary
#5297FE
secondary
#F2DCB9
accent
#8900E6
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0F1118
muted
#7E8086

Preview Lab

Preview with #5297FE

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

Preview Lab → · Contrast checker → · Palette generator →

#5297FE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva