#5255CB#5255CB

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

Color values

HEX#5255CB
RGBrgb(82, 85, 203)
HSLhsl(239, 54%, 56%)
HSVhsv(239, 60%, 80%)
CMYKcmyk(59.6%, 58.1%, 0%, 20.4%)
CIE-LABlab(42.16, 33.80, -61.85)
CIE-LCHlch(42.16, 70.49, 298.65°)
OKLaboklab(51.49% 0.0218 -0.1777)
OKLCHoklch(51.49% 0.179 277)
XYZxyz(17.5042, 12.6013, 57.9982)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255CB #CBC852
analogous
#5291CB #5255CB #8B52CB
triadic
#5255CB #CB5255 #55CB52
tetradic
#5255CB #CB5291 #CBC852 #52CB8B
square
#5255CB #CB5291 #CBC852 #52CB8B
split-complementary
#5255CB #CB8B52 #91CB52
monochromatic
#26287D #3437AC #5255CB #8183D9 #B0B1E7

Accessibility & contrast

On white

5.96
#5255CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5255CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255CB
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255CB#FFFFFF#000000##FFFFFF
##5255CB1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#005EC9
Tritanopia (blue-blind)
#007188
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5255cb;
/* rgb */ color: rgb(82, 85, 203);
/* oklch */ color: oklch(51.5% 0.179 277.0);
Tailwind
colors: {
  custom: {
    50: '#8e85dc',
    500: '#5255cb',
    950: '#000000',
  },
}
SCSS
$custom: #5255cb;
$custom-light: #8e85dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5255cb",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 203
  },
  "hsl": {
    "h": 238.512,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51492,
    "c": 0.17902,
    "h": 277
  },
  "luminance": 0.12603
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5255CB

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

Preview Lab → · Contrast checker → · Palette generator →

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