#5255FA#5255FA

#5255FA is a mid, highly saturated blue. Relative luminance 0.152; OKLCH L 55.4% C 0.239 H 274.6°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5255FA
RGBrgb(82, 85, 250)
HSLhsl(239, 94%, 65%)
HSVhsv(239, 67%, 98%)
CMYKcmyk(67.2%, 66%, 0%, 2%)
CIE-LABlab(45.89, 49.15, -82.43)
CIE-LCHlch(45.89, 95.97, 300.81°)
OKLaboklab(55.39% 0.019 -0.2381)
OKLCHoklch(55.39% 0.239 274.6)
XYZxyz(23.9778, 15.1908, 92.0924)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255FA #FAF752
analogous
#52A9FA #5255FA #A352FA
triadic
#5255FA #FA5255 #55FA52
tetradic
#5255FA #FA52A9 #FAF752 #52FAA3
square
#5255FA #FA52A9 #FAF752 #52FAA3
split-complementary
#5255FA #FAA352 #A9FA52
monochromatic
#0609CC #171BF8 #5255FA #8D8FFC #C9CAFD

Accessibility & contrast

On white

5.20
#5255FA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#5255FA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255FA
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255FA#FFFFFF#000000##FFFFFF
##5255FA1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074FF
Deuteranopia (green-blind)
#0065F7
Tritanopia (blue-blind)
#0081A0
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5255fa;
/* rgb */ color: rgb(82, 85, 250);
/* oklch */ color: oklch(55.4% 0.239 274.6);
Tailwind
colors: {
  custom: {
    50: '#9686fd',
    500: '#5255fa',
    950: '#000000',
  },
}
SCSS
$custom: #5255fa;
$custom-light: #9686fd;
$custom-dark: #000000;
JSON
{
  "hex": "#5255fa",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 250
  },
  "hsl": {
    "h": 238.929,
    "s": 94.382,
    "l": 65.098
  },
  "oklch": {
    "l": 0.5539,
    "c": 0.23881,
    "h": 274.6
  },
  "luminance": 0.15193
}

Semantic roles & 50–950 ramp

primary
#5255FA
secondary
#F0EFB7
accent
#E100E6
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B18
muted
#7F7C86

Preview Lab

Preview with #5255FA

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

Preview Lab → · Contrast checker → · Palette generator →

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