#5274EB#5274EB

#5274EB is a mid, vivid blue. Relative luminance 0.203; OKLCH L 59.7% C 0.183 H 268.4°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#5274EB
RGBrgb(82, 116, 235)
HSLhsl(227, 79%, 62%)
HSVhsv(227, 65%, 92%)
CMYKcmyk(65.1%, 50.6%, 0%, 7.8%)
CIE-LABlab(52.15, 25.38, -63.86)
CIE-LCHlch(52.15, 68.72, 291.67°)
OKLaboklab(59.69% -0.0052 -0.1832)
OKLCHoklch(59.69% 0.183 268.4)
XYZxyz(24.7153, 20.2805, 81.1932)
Luminance0.2028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5274EB #EBC952
analogous
#52C0EB #5274EB #7D52EB
triadic
#5274EB #EB5274 #74EB52
tetradic
#5274EB #EB52C0 #EBC952 #52EB7D
square
#5274EB #EB52C0 #EBC952 #52EB7D
split-complementary
#5274EB #EB7D52 #C0EB52
monochromatic
#1436AE #1B48E5 #5274EB #89A0F1 #C0CCF8

Accessibility & contrast

On white

4.15
#5274EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#5274EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5274EB
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5274EB#FFFFFF#000000##000000
##5274EB1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D84EF
Deuteranopia (green-blind)
#0076E9
Tritanopia (blue-blind)
#0090A4
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5274eb;
/* rgb */ color: rgb(82, 116, 235);
/* oklch */ color: oklch(59.7% 0.183 268.4);
Tailwind
colors: {
  custom: {
    50: '#929bf2',
    500: '#5274eb',
    950: '#000000',
  },
}
SCSS
$custom: #5274eb;
$custom-light: #929bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#5274eb",
  "rgb": {
    "r": 82,
    "g": 116,
    "b": 235
  },
  "hsl": {
    "h": 226.667,
    "s": 79.275,
    "l": 62.157
  },
  "oklch": {
    "l": 0.59686,
    "c": 0.1833,
    "h": 268.4
  },
  "luminance": 0.20283
}

Semantic roles & 50–950 ramp

primary
#5274EB
secondary
#E8DCB0
accent
#AD0ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5274EB

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

Preview Lab → · Contrast checker → · Palette generator →

#5274EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva