#5255CA#5255CA

#5255CA is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.4% C 0.178 H 277.0°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#5255CA
RGBrgb(82, 85, 202)
HSLhsl(239, 53%, 56%)
HSVhsv(239, 59%, 79%)
CMYKcmyk(59.4%, 57.9%, 0%, 20.8%)
CIE-LABlab(42.08, 33.47, -61.40)
CIE-LCHlch(42.08, 69.93, 298.60°)
OKLaboklab(51.42% 0.0218 -0.1763)
OKLCHoklch(51.42% 0.178 277)
XYZxyz(17.3854, 12.5538, 57.3726)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255CA #CAC752
analogous
#5291CA #5255CA #8B52CA
triadic
#5255CA #CA5255 #55CA52
tetradic
#5255CA #CA5291 #CAC752 #52CA8B
square
#5255CA #CA5291 #CAC752 #52CA8B
split-complementary
#5255CA #CA8B52 #91CA52
monochromatic
#26287C #3437AB #5255CA #8183D8 #B0B1E7

Accessibility & contrast

On white

5.98
#5255CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5255CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255CA
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255CA#FFFFFF#000000##FFFFFF
##5255CA1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#005EC8
Tritanopia (blue-blind)
#007187
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5255ca;
/* rgb */ color: rgb(82, 85, 202);
/* oklch */ color: oklch(51.4% 0.178 277.0);
Tailwind
colors: {
  custom: {
    50: '#8e85db',
    500: '#5255ca',
    950: '#000000',
  },
}
SCSS
$custom: #5255ca;
$custom-light: #8e85db;
$custom-dark: #000000;
JSON
{
  "hex": "#5255ca",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 202
  },
  "hsl": {
    "h": 238.5,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51415,
    "c": 0.17768,
    "h": 277
  },
  "luminance": 0.12555
}

Semantic roles & 50–950 ramp

primary
#5255CA
secondary
#D5D4A3
accent
#D94BDD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5255CA

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

Preview Lab → · Contrast checker → · Palette generator →

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