#5245DB#5245DB

#5245DB is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.2% C 0.218 H 278.9°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#5245DB
RGBrgb(82, 69, 219)
HSLhsl(245, 68%, 56%)
HSVhsv(245, 68%, 86%)
CMYKcmyk(62.6%, 68.5%, 0%, 14.1%)
CIE-LABlab(39.85, 48.44, -74.81)
CIE-LCHlch(39.85, 89.13, 302.92°)
OKLaboklab(50.21% 0.0339 -0.2158)
OKLCHoklch(50.21% 0.218 278.9)
XYZxyz(18.3899, 11.1631, 68.1897)
Luminance0.1116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5245DB #CEDB45
analogous
#4583DB #5245DB #9D45DB
triadic
#5245DB #DB5245 #45DB52
tetradic
#5245DB #DB4583 #CEDB45 #45DB9D
square
#5245DB #DB4583 #CEDB45 #45DB9D
split-complementary
#5245DB #DB9D45 #83DB45
monochromatic
#251B8B #3225BE #5245DB #8278E5 #B1ACEF

Accessibility & contrast

On white

6.50
#5245DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5245DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5245DB
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5245DB#FFFFFF#000000##FFFFFF
##5245DB1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E0
Deuteranopia (green-blind)
#0058D8
Tritanopia (blue-blind)
#006D8B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5245db;
/* rgb */ color: rgb(82, 69, 219);
/* oklch */ color: oklch(50.2% 0.218 278.9);
Tailwind
colors: {
  custom: {
    50: '#927ae7',
    500: '#5245db',
    950: '#000000',
  },
}
SCSS
$custom: #5245db;
$custom-light: #927ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#5245db",
  "rgb": {
    "r": 82,
    "g": 69,
    "b": 219
  },
  "hsl": {
    "h": 245.2,
    "s": 67.568,
    "l": 56.471
  },
  "oklch": {
    "l": 0.50211,
    "c": 0.21842,
    "h": 278.9
  },
  "luminance": 0.11165
}

Semantic roles & 50–950 ramp

primary
#5245DB
secondary
#D7DD9F
accent
#EA3DDB
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5245DB

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

Preview Lab → · Contrast checker → · Palette generator →

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