#505FD7#505FD7

#505FD7 is a mid, vivid blue. Relative luminance 0.148; OKLCH L 54.1% C 0.183 H 273.3°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#505FD7
RGBrgb(80, 95, 215)
HSLhsl(233, 63%, 58%)
HSVhsv(233, 63%, 84%)
CMYKcmyk(62.8%, 55.8%, 0%, 15.7%)
CIE-LABlab(45.35, 31.26, -63.57)
CIE-LCHlch(45.35, 70.84, 296.19°)
OKLaboklab(54.11% 0.0104 -0.1827)
OKLCHoklch(54.11% 0.183 273.3)
XYZxyz(19.6621, 14.7945, 66.0963)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505FD7 #D7C850
analogous
#50A3D7 #505FD7 #8450D7
triadic
#505FD7 #D7505F #5FD750
tetradic
#505FD7 #D750A3 #D7C850 #50D784
square
#505FD7 #D750A3 #D7C850 #50D784
split-complementary
#505FD7 #D78450 #A3D750
monochromatic
#202C8C #2B3CBE #505FD7 #828DE2 #B4BAEE

Accessibility & contrast

On white

5.30
#505FD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#505FD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505FD7
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505FD7#FFFFFF#000000##FFFFFF
##505FD71.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DB
Deuteranopia (green-blind)
#0066D5
Tritanopia (blue-blind)
#007C92
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #505fd7;
/* rgb */ color: rgb(80, 95, 215);
/* oklch */ color: oklch(54.1% 0.183 273.3);
Tailwind
colors: {
  custom: {
    50: '#8e8ce4',
    500: '#505fd7',
    950: '#000000',
  },
}
SCSS
$custom: #505fd7;
$custom-light: #8e8ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#505fd7",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 215
  },
  "hsl": {
    "h": 233.333,
    "s": 62.791,
    "l": 57.843
  },
  "oklch": {
    "l": 0.54109,
    "c": 0.18297,
    "h": 273.3
  },
  "luminance": 0.14796
}

Semantic roles & 50–950 ramp

primary
#505FD7
secondary
#DCD6A6
accent
#D442E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #505FD7

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

Preview Lab → · Contrast checker → · Palette generator →

#505FD7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva