#5255B1#5255B1

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

Color values

HEX#5255B1
RGBrgb(82, 85, 177)
HSLhsl(238, 38%, 51%)
HSVhsv(238, 54%, 69%)
CMYKcmyk(53.7%, 52%, 0%, 30.6%)
CIE-LABlab(40.35, 25.26, -49.61)
CIE-LCHlch(40.35, 55.67, 296.98°)
OKLaboklab(49.57% 0.0209 -0.1417)
OKLCHoklch(49.57% 0.143 278.4)
XYZxyz(14.6615, 11.4642, 43.0267)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255B1 #B1AE52
analogous
#5284B1 #5255B1 #7E52B1
triadic
#5255B1 #B15255 #55B152
tetradic
#5255B1 #B15284 #B1AE52 #52B17E
square
#5255B1 #B15284 #B1AE52 #52B17E
split-complementary
#5255B1 #B17E52 #84B152
monochromatic
#2A2C5E #3D4088 #5255B1 #7C7EC4 #A6A8D7

Accessibility & contrast

On white

6.38
#5255B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5255B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255B1
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255B1#FFFFFF#000000##FFFFFF
##5255B11.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2563B4
Deuteranopia (green-blind)
#185BAF
Tritanopia (blue-blind)
#276A7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5255b1;
/* rgb */ color: rgb(82, 85, 177);
/* oklch */ color: oklch(49.6% 0.143 278.4);
Tailwind
colors: {
  custom: {
    50: '#8a84c9',
    500: '#5255b1',
    950: '#000000',
  },
}
SCSS
$custom: #5255b1;
$custom-light: #8a84c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5255b1",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 177
  },
  "hsl": {
    "h": 238.105,
    "s": 37.849,
    "l": 50.784
  },
  "oklch": {
    "l": 0.49573,
    "c": 0.14319,
    "h": 278.4
  },
  "luminance": 0.11465
}

Semantic roles & 50–950 ramp

primary
#5255B1
secondary
#C4C39A
accent
#CA5ACE
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #5255B1

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

Preview Lab → · Contrast checker → · Palette generator →

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