#505FCF#505FCF

#505FCF is a mid, vivid blue. Relative luminance 0.144; OKLCH L 53.5% C 0.172 H 273.4°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#505FCF
RGBrgb(80, 95, 207)
HSLhsl(233, 57%, 56%)
HSVhsv(233, 61%, 81%)
CMYKcmyk(61.4%, 54.1%, 0%, 18.8%)
CIE-LABlab(44.79, 28.56, -59.89)
CIE-LCHlch(44.79, 66.35, 295.49°)
OKLaboklab(53.51% 0.0101 -0.1719)
OKLCHoklch(53.51% 0.172 273.4)
XYZxyz(18.6592, 14.3934, 60.8143)
Luminance0.1439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505FCF #CFC050
analogous
#509FCF #505FCF #8150CF
triadic
#505FCF #CF505F #5FCF50
tetradic
#505FCF #CF509F #CFC050 #50CF81
square
#505FCF #CF509F #CFC050 #50CF81
split-complementary
#505FCF #CF8150 #9FCF50
monochromatic
#232F81 #3140B1 #505FCF #808BDC #B0B7E9

Accessibility & contrast

On white

5.41
#505FCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#505FCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505FCF
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505FCF#FFFFFF#000000##FFFFFF
##505FCF1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F70D3
Deuteranopia (green-blind)
#0065CD
Tritanopia (blue-blind)
#00798E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #505fcf;
/* rgb */ color: rgb(80, 95, 207);
/* oklch */ color: oklch(53.5% 0.172 273.4);
Tailwind
colors: {
  custom: {
    50: '#8d8cde',
    500: '#505fcf',
    950: '#000000',
  },
}
SCSS
$custom: #505fcf;
$custom-light: #8d8cde;
$custom-dark: #000000;
JSON
{
  "hex": "#505fcf",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 207
  },
  "hsl": {
    "h": 232.913,
    "s": 56.951,
    "l": 56.275
  },
  "oklch": {
    "l": 0.53513,
    "c": 0.17217,
    "h": 273.4
  },
  "luminance": 0.14395
}

Semantic roles & 50–950 ramp

primary
#505FCF
secondary
#D8D1A3
accent
#CE48E0
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #505FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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