#5245EF#5245EF

#5245EF is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 52.0% C 0.242 H 277.2°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#5245EF
RGBrgb(82, 69, 239)
HSLhsl(245, 84%, 60%)
HSVhsv(245, 71%, 94%)
CMYKcmyk(65.7%, 71.1%, 0%, 6.3%)
CIE-LABlab(41.66, 54.62, -83.21)
CIE-LCHlch(41.66, 99.54, 303.28°)
OKLaboklab(52.05% 0.0306 -0.2403)
OKLCHoklch(52.05% 0.242 277.2)
XYZxyz(21.1827, 12.2802, 82.8986)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5245EF #E2EF45
analogous
#458DEF #5245EF #A745EF
triadic
#5245EF #EF5245 #45EF52
tetradic
#5245EF #EF458D #E2EF45 #45EFA7
square
#5245EF #EF458D #E2EF45 #45EFA7
split-complementary
#5245EF #EFA745 #8DEF45
monochromatic
#1B0FAB #2314E3 #5245EF #867DF4 #BBB6F9

Accessibility & contrast

On white

6.08
#5245EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5245EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5245EF
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5245EF#FFFFFF#000000##FFFFFF
##5245EF1.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069F4
Deuteranopia (green-blind)
#005BEC
Tritanopia (blue-blind)
#007496
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5245ef;
/* rgb */ color: rgb(82, 69, 239);
/* oklch */ color: oklch(52.0% 0.242 277.2);
Tailwind
colors: {
  custom: {
    50: '#967bf6',
    500: '#5245ef',
    950: '#000000',
  },
}
SCSS
$custom: #5245ef;
$custom-light: #967bf6;
$custom-dark: #000000;
JSON
{
  "hex": "#5245ef",
  "rgb": {
    "r": 82,
    "g": 69,
    "b": 239
  },
  "hsl": {
    "h": 244.588,
    "s": 84.158,
    "l": 60.392
  },
  "oklch": {
    "l": 0.52049,
    "c": 0.24228,
    "h": 277.2
  },
  "luminance": 0.12282
}

Semantic roles & 50–950 ramp

primary
#5245EF
secondary
#E3E8A7
accent
#E105D0
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5245EF

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

Preview Lab → · Contrast checker → · Palette generator →

#5245EF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva