#5255F8#5255F8

#5255F8 is a mid, highly saturated blue. Relative luminance 0.151; OKLCH L 55.2% C 0.236 H 274.6°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#5255F8
RGBrgb(82, 85, 248)
HSLhsl(239, 92%, 65%)
HSVhsv(239, 67%, 97%)
CMYKcmyk(66.9%, 65.7%, 0%, 2.7%)
CIE-LABlab(45.72, 48.50, -81.59)
CIE-LCHlch(45.72, 94.92, 300.73°)
OKLaboklab(55.22% 0.0192 -0.2356)
OKLCHoklch(55.22% 0.236 274.6)
XYZxyz(23.6658, 15.0660, 90.4496)
Luminance0.1507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255F8 #F8F552
analogous
#52A8F8 #5255F8 #A252F8
triadic
#5255F8 #F85255 #55F852
tetradic
#5255F8 #F852A8 #F8F552 #52F8A2
square
#5255F8 #F852A8 #F8F552 #52F8A2
split-complementary
#5255F8 #F8A252 #A8F852
monochromatic
#080CC8 #171BF6 #5255F8 #8D8FFA #C8C9FD

Accessibility & contrast

On white

5.23
#5255F8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#5255F8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255F8
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255F8#FFFFFF#000000##FFFFFF
##5255F81.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074FD
Deuteranopia (green-blind)
#0065F5
Tritanopia (blue-blind)
#00809F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5255f8;
/* rgb */ color: rgb(82, 85, 248);
/* oklch */ color: oklch(55.2% 0.236 274.6);
Tailwind
colors: {
  custom: {
    50: '#9685fc',
    500: '#5255f8',
    950: '#000000',
  },
}
SCSS
$custom: #5255f8;
$custom-light: #9685fc;
$custom-dark: #000000;
JSON
{
  "hex": "#5255f8",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 248
  },
  "hsl": {
    "h": 238.916,
    "s": 92.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.55215,
    "c": 0.23638,
    "h": 274.6
  },
  "luminance": 0.15068
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5255F8

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

Preview Lab → · Contrast checker → · Palette generator →

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