#5255C8#5255C8

#5255C8 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.3% C 0.175 H 277.1°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#5255C8
RGBrgb(82, 85, 200)
HSLhsl(238, 52%, 55%)
HSVhsv(238, 59%, 78%)
CMYKcmyk(59%, 57.5%, 0%, 21.6%)
CIE-LABlab(41.94, 32.81, -60.48)
CIE-LCHlch(41.94, 68.80, 298.48°)
OKLaboklab(51.26% 0.0218 -0.1736)
OKLCHoklch(51.26% 0.175 277.1)
XYZxyz(17.1502, 12.4597, 56.1336)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255C8 #C8C552
analogous
#5290C8 #5255C8 #8A52C8
triadic
#5255C8 #C85255 #55C852
tetradic
#5255C8 #C85290 #C8C552 #52C88A
square
#5255C8 #C85290 #C8C552 #52C88A
split-complementary
#5255C8 #C88A52 #90C852
monochromatic
#272979 #3538A8 #5255C8 #8083D7 #AFB0E6

Accessibility & contrast

On white

6.01
#5255C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#5255C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255C8
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255C8#FFFFFF#000000##FFFFFF
##5255C81.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CC
Deuteranopia (green-blind)
#005EC6
Tritanopia (blue-blind)
#007086
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5255c8;
/* rgb */ color: rgb(82, 85, 200);
/* oklch */ color: oklch(51.3% 0.175 277.1);
Tailwind
colors: {
  custom: {
    50: '#8d85d9',
    500: '#5255c8',
    950: '#000000',
  },
}
SCSS
$custom: #5255c8;
$custom-light: #8d85d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5255c8",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 200
  },
  "hsl": {
    "h": 238.475,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.51261,
    "c": 0.17499,
    "h": 277.1
  },
  "luminance": 0.12461
}

Semantic roles & 50–950 ramp

primary
#5255C8
secondary
#D4D2A2
accent
#D84DDB
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5255C8

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

Preview Lab → · Contrast checker → · Palette generator →

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