#5045F2#5045F2

#5045F2 is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 52.2% C 0.246 H 276.4°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5045F2
RGBrgb(80, 69, 242)
HSLhsl(244, 87%, 61%)
HSVhsv(244, 71%, 95%)
CMYKcmyk(66.9%, 71.5%, 0%, 5.1%)
CIE-LABlab(41.80, 55.32, -84.68)
CIE-LCHlch(41.80, 101.15, 303.16°)
OKLaboklab(52.2% 0.0276 -0.2447)
OKLCHoklch(52.2% 0.246 276.4)
XYZxyz(21.4582, 12.3706, 85.2441)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5045F2 #E7F245
analogous
#4590F2 #5045F2 #A645F2
triadic
#5045F2 #F25045 #45F250
tetradic
#5045F2 #F24590 #E7F245 #45F2A6
square
#5045F2 #F24590 #E7F245 #45F2A6
split-complementary
#5045F2 #F2A645 #90F245
monochromatic
#170CB0 #1E10E9 #5045F2 #867EF6 #BCB7FA

Accessibility & contrast

On white

6.04
#5045F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5045F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5045F2
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5045F2#FFFFFF#000000##FFFFFF
##5045F21.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF7
Deuteranopia (green-blind)
#005BEF
Tritanopia (blue-blind)
#007697
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5045f2;
/* rgb */ color: rgb(80, 69, 242);
/* oklch */ color: oklch(52.2% 0.246 276.4);
Tailwind
colors: {
  custom: {
    50: '#957bf8',
    500: '#5045f2',
    950: '#000000',
  },
}
SCSS
$custom: #5045f2;
$custom-light: #957bf8;
$custom-dark: #000000;
JSON
{
  "hex": "#5045f2",
  "rgb": {
    "r": 80,
    "g": 69,
    "b": 242
  },
  "hsl": {
    "h": 243.815,
    "s": 86.935,
    "l": 60.98
  },
  "oklch": {
    "l": 0.52198,
    "c": 0.24622,
    "h": 276.4
  },
  "luminance": 0.12373
}

Semantic roles & 50–950 ramp

primary
#5045F2
secondary
#E6EAA9
accent
#E302D5
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5045F2

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

Preview Lab → · Contrast checker → · Palette generator →

#5045F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva