#5272F5#5272F5

#5272F5 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.0% C 0.199 H 269.2°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5272F5
RGBrgb(82, 114, 245)
HSLhsl(228, 89%, 64%)
HSVhsv(228, 67%, 96%)
CMYKcmyk(66.5%, 53.5%, 0%, 3.9%)
CIE-LABlab(52.31, 30.03, -69.19)
CIE-LCHlch(52.31, 75.42, 293.47°)
OKLaboklab(60.01% -0.0027 -0.1989)
OKLCHoklch(60.01% 0.199 269.2)
XYZxyz(25.9728, 20.4186, 88.9409)
Luminance0.2042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5272F5 #F5D552
analogous
#52C4F5 #5272F5 #8452F5
triadic
#5272F5 #F55272 #72F552
tetradic
#5272F5 #F552C4 #F5D552 #52F584
square
#5272F5 #F552C4 #F5D552 #52F584
split-complementary
#5272F5 #F58452 #C4F552
monochromatic
#0B2FC1 #1843F2 #5272F5 #8CA1F8 #C6D0FC

Accessibility & contrast

On white

4.13
#5272F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#5272F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5272F5
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5272F5#FFFFFF#000000##000000
##5272F51.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0A84FA
Deuteranopia (green-blind)
#0076F2
Tritanopia (blue-blind)
#0091A9
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5272f5;
/* rgb */ color: rgb(82, 114, 245);
/* oklch */ color: oklch(60.0% 0.199 269.2);
Tailwind
colors: {
  custom: {
    50: '#949af9',
    500: '#5272f5',
    950: '#000000',
  },
}
SCSS
$custom: #5272f5;
$custom-light: #949af9;
$custom-dark: #000000;
JSON
{
  "hex": "#5272f5",
  "rgb": {
    "r": 82,
    "g": 114,
    "b": 245
  },
  "hsl": {
    "h": 228.221,
    "s": 89.071,
    "l": 64.118
  },
  "oklch": {
    "l": 0.60014,
    "c": 0.19896,
    "h": 269.2
  },
  "luminance": 0.20421
}

Semantic roles & 50–950 ramp

primary
#5272F5
secondary
#EEE3B5
accent
#B800E6
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5272F5

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

Preview Lab → · Contrast checker → · Palette generator →

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