#505FCB#505FCB

#505FCB is a mid, vivid blue. Relative luminance 0.142; OKLCH L 53.2% C 0.167 H 273.4°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#505FCB
RGBrgb(80, 95, 203)
HSLhsl(233, 54%, 55%)
HSVhsv(233, 61%, 80%)
CMYKcmyk(60.6%, 53.2%, 0%, 20.4%)
CIE-LABlab(44.52, 27.21, -58.04)
CIE-LCHlch(44.52, 64.10, 295.12°)
OKLaboklab(53.22% 0.0099 -0.1664)
OKLCHoklch(53.22% 0.167 273.4)
XYZxyz(18.1764, 14.2002, 58.2714)
Luminance0.1420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505FCB #CBBC50
analogous
#509CCB #505FCB #7E50CB
triadic
#505FCB #CB505F #5FCB50
tetradic
#505FCB #CB509C #CBBC50 #50CB7E
square
#505FCB #CB509C #CBBC50 #50CB7E
split-complementary
#505FCB #CB7E50 #9CCB50
monochromatic
#252F7C #3341AB #505FCB #7F8AD9 #AEB5E7

Accessibility & contrast

On white

5.47
#505FCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#505FCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505FCB
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505FCB#FFFFFF#000000##FFFFFF
##505FCB1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A6FCF
Deuteranopia (green-blind)
#0064C9
Tritanopia (blue-blind)
#00788C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #505fcb;
/* rgb */ color: rgb(80, 95, 203);
/* oklch */ color: oklch(53.2% 0.167 273.4);
Tailwind
colors: {
  custom: {
    50: '#8c8cdb',
    500: '#505fcb',
    950: '#000000',
  },
}
SCSS
$custom: #505fcb;
$custom-light: #8c8cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#505fcb",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 203
  },
  "hsl": {
    "h": 232.683,
    "s": 54.185,
    "l": 55.49
  },
  "oklch": {
    "l": 0.53221,
    "c": 0.1667,
    "h": 273.4
  },
  "luminance": 0.14202
}

Semantic roles & 50–950 ramp

primary
#505FCB
secondary
#D5CFA2
accent
#CC4ADE
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #505FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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