#5255B2#5255B2

#5255B2 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.6% C 0.145 H 278.3°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#5255B2
RGBrgb(82, 85, 178)
HSLhsl(238, 38%, 51%)
HSVhsv(238, 54%, 70%)
CMYKcmyk(53.9%, 52.2%, 0%, 30.2%)
CIE-LABlab(40.42, 25.58, -50.09)
CIE-LCHlch(40.42, 56.25, 297.06°)
OKLaboklab(49.64% 0.021 -0.1431)
OKLCHoklch(49.64% 0.145 278.3)
XYZxyz(14.7615, 11.5043, 43.5535)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255B2 #B2AF52
analogous
#5285B2 #5255B2 #7F52B2
triadic
#5255B2 #B25255 #55B252
tetradic
#5255B2 #B25285 #B2AF52 #52B27F
square
#5255B2 #B25285 #B2AF52 #52B27F
split-complementary
#5255B2 #B27F52 #85B252
monochromatic
#2A2C5F #3D408A #5255B2 #7C7FC5 #A7A8D8

Accessibility & contrast

On white

6.36
#5255B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#5255B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255B2
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255B2#FFFFFF#000000##FFFFFF
##5255B21.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2463B5
Deuteranopia (green-blind)
#155CB0
Tritanopia (blue-blind)
#266A7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5255b2;
/* rgb */ color: rgb(82, 85, 178);
/* oklch */ color: oklch(49.6% 0.145 278.3);
Tailwind
colors: {
  custom: {
    50: '#8a84ca',
    500: '#5255b2',
    950: '#000000',
  },
}
SCSS
$custom: #5255b2;
$custom-light: #8a84ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5255b2",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 178
  },
  "hsl": {
    "h": 238.125,
    "s": 38.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49643,
    "c": 0.14461,
    "h": 278.3
  },
  "luminance": 0.11505
}

Semantic roles & 50–950 ramp

primary
#5255B2
secondary
#C5C49B
accent
#CB59CE
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #5255B2

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

Preview Lab → · Contrast checker → · Palette generator →

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