#5274F5#5274F5

#5274F5 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.4% C 0.197 H 268.7°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#5274F5
RGBrgb(82, 116, 245)
HSLhsl(227, 89%, 64%)
HSVhsv(227, 67%, 96%)
CMYKcmyk(66.5%, 52.7%, 0%, 3.9%)
CIE-LABlab(52.81, 28.80, -68.37)
CIE-LCHlch(52.81, 74.19, 292.85°)
OKLaboklab(60.39% -0.0044 -0.1965)
OKLCHoklch(60.39% 0.197 268.7)
XYZxyz(26.2008, 20.8747, 89.0169)
Luminance0.2088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5274F5 #F5D352
analogous
#52C5F5 #5274F5 #8252F5
triadic
#5274F5 #F55274 #74F552
tetradic
#5274F5 #F552C5 #F5D352 #52F582
square
#5274F5 #F552C5 #F5D352 #52F582
split-complementary
#5274F5 #F58252 #C5F552
monochromatic
#0B31C1 #1846F2 #5274F5 #8CA2F8 #C6D1FC

Accessibility & contrast

On white

4.06
#5274F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#5274F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5274F5
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5274F5#FFFFFF#000000##000000
##5274F51.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1986FA
Deuteranopia (green-blind)
#0077F2
Tritanopia (blue-blind)
#0093A9
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5274f5;
/* rgb */ color: rgb(82, 116, 245);
/* oklch */ color: oklch(60.4% 0.197 268.7);
Tailwind
colors: {
  custom: {
    50: '#949bf9',
    500: '#5274f5',
    950: '#000000',
  },
}
SCSS
$custom: #5274f5;
$custom-light: #949bf9;
$custom-dark: #000000;
JSON
{
  "hex": "#5274f5",
  "rgb": {
    "r": 82,
    "g": 116,
    "b": 245
  },
  "hsl": {
    "h": 227.485,
    "s": 89.071,
    "l": 64.118
  },
  "oklch": {
    "l": 0.60394,
    "c": 0.19656,
    "h": 268.7
  },
  "luminance": 0.20877
}

Semantic roles & 50–950 ramp

primary
#5274F5
secondary
#EEE2B5
accent
#B600E6
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5274F5

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

Preview Lab → · Contrast checker → · Palette generator →

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