#5255FF#5255FF

#5255FF is a mid, highly saturated blue. Relative luminance 0.155; OKLCH L 55.8% C 0.245 H 274.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#5255FF
RGBrgb(82, 85, 255)
HSLhsl(239, 100%, 66%)
HSVhsv(239, 68%, 100%)
CMYKcmyk(67.8%, 66.7%, 0%, 0%)
CIE-LABlab(46.32, 50.75, -84.51)
CIE-LCHlch(46.32, 98.58, 300.99°)
OKLaboklab(55.83% 0.0184 -0.2441)
OKLCHoklch(55.83% 0.245 274.3)
XYZxyz(24.7722, 15.5085, 96.2763)
Luminance0.1551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255FF #FFFC52
analogous
#52ABFF #5255FF #A652FF
triadic
#5255FF #FF5255 #55FF52
tetradic
#5255FF #FF52AB #FFFC52 #52FFA6
square
#5255FF #FF52AB #FFFC52 #52FFA6
split-complementary
#5255FF #FFA652 #ABFF52
monochromatic
#0004D7 #1519FF #5255FF #8F91FF #CCCDFF

Accessibility & contrast

On white

5.12
#5255FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#5255FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255FF
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255FF#FFFFFF#000000##FFFFFF
##5255FF1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076FF
Deuteranopia (green-blind)
#0066FC
Tritanopia (blue-blind)
#0083A3
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5255ff;
/* rgb */ color: rgb(82, 85, 255);
/* oklch */ color: oklch(55.8% 0.245 274.3);
Tailwind
colors: {
  custom: {
    50: '#9786ff',
    500: '#5255ff',
    950: '#000000',
  },
}
SCSS
$custom: #5255ff;
$custom-light: #9786ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5255ff",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 255
  },
  "hsl": {
    "h": 238.96,
    "s": 100,
    "l": 66.078
  },
  "oklch": {
    "l": 0.55832,
    "c": 0.24484,
    "h": 274.3
  },
  "luminance": 0.15511
}

Semantic roles & 50–950 ramp

primary
#5255FF
secondary
#F3F2BA
accent
#E200E6
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B18
muted
#7F7C86

Preview Lab

Preview with #5255FF

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

Preview Lab → · Contrast checker → · Palette generator →

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