#5255BF#5255BF

#5255BF is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.6% C 0.163 H 277.6°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#5255BF
RGBrgb(82, 85, 191)
HSLhsl(238, 46%, 54%)
HSVhsv(238, 57%, 75%)
CMYKcmyk(57.1%, 55.5%, 0%, 25.1%)
CIE-LABlab(41.30, 29.85, -56.29)
CIE-LCHlch(41.30, 63.71, 297.93°)
OKLaboklab(50.58% 0.0216 -0.1613)
OKLCHoklch(50.58% 0.163 277.6)
XYZxyz(16.1291, 12.0513, 50.7563)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255BF #BFBC52
analogous
#528BBF #5255BF #8552BF
triadic
#5255BF #BF5255 #55BF52
tetradic
#5255BF #BF528B #BFBC52 #52BF85
square
#5255BF #BF528B #BFBC52 #52BF85
split-complementary
#5255BF #BF8552 #8BBF52
monochromatic
#292B6E #393C9B #5255BF #7F81D0 #ABADE0

Accessibility & contrast

On white

6.16
#5255BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#5255BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255BF
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255BF#FFFFFF#000000##FFFFFF
##5255BF1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0666C3
Deuteranopia (green-blind)
#005DBD
Tritanopia (blue-blind)
#116E82
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5255bf;
/* rgb */ color: rgb(82, 85, 191);
/* oklch */ color: oklch(50.6% 0.163 277.6);
Tailwind
colors: {
  custom: {
    50: '#8c85d3',
    500: '#5255bf',
    950: '#000000',
  },
}
SCSS
$custom: #5255bf;
$custom-light: #8c85d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5255bf",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 191
  },
  "hsl": {
    "h": 238.349,
    "s": 45.992,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50582,
    "c": 0.16274,
    "h": 277.6
  },
  "luminance": 0.12052
}

Semantic roles & 50–950 ramp

primary
#5255BF
secondary
#CECC9F
accent
#D252D6
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5255BF

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

Preview Lab → · Contrast checker → · Palette generator →

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