#5255AF#5255AF

#5255AF is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.4% C 0.140 H 278.5°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#5255AF
RGBrgb(82, 85, 175)
HSLhsl(238, 37%, 50%)
HSVhsv(238, 53%, 69%)
CMYKcmyk(53.1%, 51.4%, 0%, 31.4%)
CIE-LABlab(40.22, 24.61, -48.64)
CIE-LCHlch(40.22, 54.51, 296.84°)
OKLaboklab(49.43% 0.0208 -0.1388)
OKLCHoklch(49.43% 0.14 278.5)
XYZxyz(14.4636, 11.3851, 41.9845)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255AF #AFAC52
analogous
#5283AF #5255AF #7E52AF
triadic
#5255AF #AF5255 #55AF52
tetradic
#5255AF #AF5283 #AFAC52 #52AF7E
square
#5255AF #AF5283 #AFAC52 #52AF7E
split-complementary
#5255AF #AF7E52 #83AF52
monochromatic
#2B2C5C #3E4086 #5255AF #7C7EC2 #A6A7D6

Accessibility & contrast

On white

6.41
#5255AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5255AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255AF
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255AF#FFFFFF#000000##FFFFFF
##5255AF1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2763B2
Deuteranopia (green-blind)
#1C5BAD
Tritanopia (blue-blind)
#29697A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5255af;
/* rgb */ color: rgb(82, 85, 175);
/* oklch */ color: oklch(49.4% 0.140 278.5);
Tailwind
colors: {
  custom: {
    50: '#8a84c7',
    500: '#5255af',
    950: '#000000',
  },
}
SCSS
$custom: #5255af;
$custom-light: #8a84c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5255af",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 175
  },
  "hsl": {
    "h": 238.065,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.49433,
    "c": 0.14034,
    "h": 278.5
  },
  "luminance": 0.11386
}

Semantic roles & 50–950 ramp

primary
#5255AF
secondary
#C3C29A
accent
#C95BCD
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #5255AF

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

Preview Lab → · Contrast checker → · Palette generator →

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