#504BEF#504BEF

#504BEF is a mid, highly saturated blue. Relative luminance 0.130; OKLCH L 52.8% C 0.237 H 275.9°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#504BEF
RGBrgb(80, 75, 239)
HSLhsl(242, 84%, 62%)
HSVhsv(242, 69%, 94%)
CMYKcmyk(66.5%, 68.6%, 0%, 6.3%)
CIE-LABlab(42.71, 51.09, -81.48)
CIE-LCHlch(42.71, 96.18, 302.09°)
OKLaboklab(52.77% 0.0244 -0.2353)
OKLCHoklch(52.77% 0.237 275.9)
XYZxyz(21.3992, 12.9677, 83.0199)
Luminance0.1297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BEF #EAEF4B
analogous
#4B98EF #504BEF #A24BEF
triadic
#504BEF #EF504B #4BEF50
tetradic
#504BEF #EF4B98 #EAEF4B #4BEFA2
square
#504BEF #EF4B98 #EAEF4B #4BEFA2
split-complementary
#504BEF #EFA24B #98EF4B
monochromatic
#1510B0 #1B15E8 #504BEF #8783F4 #BDBBF9

Accessibility & contrast

On white

5.84
#504BEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#504BEF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BEF
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BEF#FFFFFF#000000##FFFFFF
##504BEF1.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CF4
Deuteranopia (green-blind)
#005EEC
Tritanopia (blue-blind)
#007897
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #504bef;
/* rgb */ color: rgb(80, 75, 239);
/* oklch */ color: oklch(52.8% 0.237 275.9);
Tailwind
colors: {
  custom: {
    50: '#947ff6',
    500: '#504bef',
    950: '#000000',
  },
}
SCSS
$custom: #504bef;
$custom-light: #947ff6;
$custom-dark: #000000;
JSON
{
  "hex": "#504bef",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 239
  },
  "hsl": {
    "h": 241.829,
    "s": 83.673,
    "l": 61.569
  },
  "oklch": {
    "l": 0.5277,
    "c": 0.23661,
    "h": 275.9
  },
  "luminance": 0.1297
}

Semantic roles & 50–950 ramp

primary
#504BEF
secondary
#E8E9AC
accent
#E005D9
background
#FAF7FF
surface
#F3EEFF
border
#CDC9D7
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #504BEF

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

Preview Lab → · Contrast checker → · Palette generator →

#504BEF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva