#5255D4#5255D4

#5255D4 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 52.2% C 0.191 H 276.5°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#5255D4
RGBrgb(82, 85, 212)
HSLhsl(239, 60%, 58%)
HSVhsv(239, 61%, 83%)
CMYKcmyk(61.3%, 59.9%, 0%, 16.9%)
CIE-LABlab(42.83, 36.76, -65.94)
CIE-LCHlch(42.83, 75.50, 299.14°)
OKLaboklab(52.2% 0.0216 -0.1897)
OKLCHoklch(52.2% 0.191 276.5)
XYZxyz(18.6080, 13.0428, 63.8115)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255D4 #D4D152
analogous
#5296D4 #5255D4 #9052D4
triadic
#5255D4 #D45255 #55D452
tetradic
#5255D4 #D45296 #D4D152 #52D490
square
#5255D4 #D45296 #D4D152 #52D490
split-complementary
#5255D4 #D49052 #96D452
monochromatic
#222589 #2E32BA #5255D4 #8385E0 #B4B5EC

Accessibility & contrast

On white

5.82
#5255D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5255D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255D4
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255D4#FFFFFF#000000##FFFFFF
##5255D41.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD8
Deuteranopia (green-blind)
#0060D1
Tritanopia (blue-blind)
#00748C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5255d4;
/* rgb */ color: rgb(82, 85, 212);
/* oklch */ color: oklch(52.2% 0.191 276.5);
Tailwind
colors: {
  custom: {
    50: '#8f85e2',
    500: '#5255d4',
    950: '#000000',
  },
}
SCSS
$custom: #5255d4;
$custom-light: #8f85e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5255d4",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 212
  },
  "hsl": {
    "h": 238.615,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.522,
    "c": 0.19093,
    "h": 276.5
  },
  "luminance": 0.13044
}

Semantic roles & 50–950 ramp

primary
#5255D4
secondary
#DBDAA7
accent
#E044E3
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B15
muted
#7E7C84

Preview Lab

Preview with #5255D4

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

Preview Lab → · Contrast checker → · Palette generator →

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