#5255CC#5255CC

#5255CC is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.6% C 0.180 H 276.9°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#5255CC
RGBrgb(82, 85, 204)
HSLhsl(239, 54%, 56%)
HSVhsv(239, 60%, 80%)
CMYKcmyk(59.8%, 58.3%, 0%, 20%)
CIE-LABlab(42.23, 34.13, -62.31)
CIE-LCHlch(42.23, 71.05, 298.71°)
OKLaboklab(51.57% 0.0218 -0.179)
OKLCHoklch(51.57% 0.18 276.9)
XYZxyz(17.6237, 12.6491, 58.6279)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255CC #CCC952
analogous
#5292CC #5255CC #8C52CC
triadic
#5255CC #CC5255 #55CC52
tetradic
#5255CC #CC5292 #CCC952 #52CC8C
square
#5255CC #CC5292 #CCC952 #52CC8C
split-complementary
#5255CC #CC8C52 #92CC52
monochromatic
#25277E #3336AE #5255CC #8183DA #B1B2E8

Accessibility & contrast

On white

5.95
#5255CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5255CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255CC
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255CC#FFFFFF#000000##FFFFFF
##5255CC1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#007288
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5255cc;
/* rgb */ color: rgb(82, 85, 204);
/* oklch */ color: oklch(51.6% 0.180 276.9);
Tailwind
colors: {
  custom: {
    50: '#8e85dc',
    500: '#5255cc',
    950: '#000000',
  },
}
SCSS
$custom: #5255cc;
$custom-light: #8e85dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5255cc",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 204
  },
  "hsl": {
    "h": 238.525,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5157,
    "c": 0.18035,
    "h": 276.9
  },
  "luminance": 0.1265
}

Semantic roles & 50–950 ramp

primary
#5255CC
secondary
#D6D5A4
accent
#DA4ADE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5255CC

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

Preview Lab → · Contrast checker → · Palette generator →

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