#5255DA#5255DA

#5255DA is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.7% C 0.199 H 276.2°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#5255DA
RGBrgb(82, 85, 218)
HSLhsl(239, 65%, 59%)
HSVhsv(239, 62%, 85%)
CMYKcmyk(62.4%, 61%, 0%, 14.5%)
CIE-LABlab(43.29, 38.73, -68.63)
CIE-LCHlch(43.29, 78.80, 299.44°)
OKLaboklab(52.68% 0.0214 -0.1976)
OKLCHoklch(52.68% 0.199 276.2)
XYZxyz(19.3789, 13.3512, 67.8719)
Luminance0.1335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255DA #DAD752
analogous
#5299DA #5255DA #9352DA
triadic
#5255DA #DA5255 #55DA52
tetradic
#5255DA #DA5299 #DAD752 #52DA93
square
#5255DA #DA5299 #DAD752 #52DA93
split-complementary
#5255DA #DA9352 #99DA52
monochromatic
#1F2292 #2A2DC5 #5255DA #8487E5 #B7B8F0

Accessibility & contrast

On white

5.72
#5255DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#5255DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255DA
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255DA#FFFFFF#000000##FFFFFF
##5255DA1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDE
Deuteranopia (green-blind)
#0060D7
Tritanopia (blue-blind)
#00768F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5255da;
/* rgb */ color: rgb(82, 85, 218);
/* oklch */ color: oklch(52.7% 0.199 276.2);
Tailwind
colors: {
  custom: {
    50: '#9185e6',
    500: '#5255da',
    950: '#000000',
  },
}
SCSS
$custom: #5255da;
$custom-light: #9185e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5255da",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 218
  },
  "hsl": {
    "h": 238.676,
    "s": 64.762,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52682,
    "c": 0.19874,
    "h": 276.2
  },
  "luminance": 0.13353
}

Semantic roles & 50–950 ramp

primary
#5255DA
secondary
#DFDEA9
accent
#E440E8
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5255DA

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

Preview Lab → · Contrast checker → · Palette generator →

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