#5254FA#5254FA

#5254FA is a mid, highly saturated blue. Relative luminance 0.150; OKLCH L 55.2% C 0.240 H 274.7°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#5254FA
RGBrgb(82, 84, 250)
HSLhsl(239, 94%, 65%)
HSVhsv(239, 67%, 98%)
CMYKcmyk(67.2%, 66.4%, 0%, 2%)
CIE-LABlab(45.68, 49.72, -82.78)
CIE-LCHlch(45.68, 96.56, 300.99°)
OKLaboklab(55.24% 0.0196 -0.2391)
OKLCHoklch(55.24% 0.24 274.7)
XYZxyz(23.8996, 15.0344, 92.0664)
Luminance0.1504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5254FA #FAF852
analogous
#52A8FA #5254FA #A452FA
triadic
#5254FA #FA5254 #54FA52
tetradic
#5254FA #FA52A8 #FAF852 #52FAA4
square
#5254FA #FA52A8 #FAF852 #52FAA4
split-complementary
#5254FA #FAA452 #A8FA52
monochromatic
#0608CC #1719F8 #5254FA #8D8FFC #C9CAFD

Accessibility & contrast

On white

5.24
#5254FA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#5254FA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5254FA
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5254FA#FFFFFF#000000##FFFFFF
##5254FA1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074FF
Deuteranopia (green-blind)
#0064F7
Tritanopia (blue-blind)
#0080A0
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5254fa;
/* rgb */ color: rgb(82, 84, 250);
/* oklch */ color: oklch(55.2% 0.240 274.7);
Tailwind
colors: {
  custom: {
    50: '#9785fd',
    500: '#5254fa',
    950: '#000000',
  },
}
SCSS
$custom: #5254fa;
$custom-light: #9785fd;
$custom-dark: #000000;
JSON
{
  "hex": "#5254fa",
  "rgb": {
    "r": 82,
    "g": 84,
    "b": 250
  },
  "hsl": {
    "h": 239.286,
    "s": 94.382,
    "l": 65.098
  },
  "oklch": {
    "l": 0.55236,
    "c": 0.23988,
    "h": 274.7
  },
  "luminance": 0.15037
}

Semantic roles & 50–950 ramp

primary
#5254FA
secondary
#F0F0B7
accent
#E300E6
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B18
muted
#7F7C86

Preview Lab

Preview with #5254FA

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

Preview Lab → · Contrast checker → · Palette generator →

#5254FA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva