#5058CF#5058CF

#5058CF is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.2% C 0.181 H 275.3°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#5058CF
RGBrgb(80, 88, 207)
HSLhsl(236, 57%, 56%)
HSVhsv(236, 61%, 81%)
CMYKcmyk(61.4%, 57.5%, 0%, 18.8%)
CIE-LABlab(43.05, 32.93, -62.72)
CIE-LCHlch(43.05, 70.84, 297.70°)
OKLaboklab(52.21% 0.0167 -0.1803)
OKLCHoklch(52.21% 0.181 275.3)
XYZxyz(18.0568, 13.1885, 60.6135)
Luminance0.1319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5058CF #CFC750
analogous
#5098CF #5058CF #8850CF
triadic
#5058CF #CF5058 #58CF50
tetradic
#5058CF #CF5098 #CFC750 #50CF88
square
#5058CF #CF5098 #CFC750 #50CF88
split-complementary
#5058CF #CF8850 #98CF50
monochromatic
#232981 #3139B1 #5058CF #8086DC #B0B4E9

Accessibility & contrast

On white

5.77
#5058CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#5058CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5058CF
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5058CF#FFFFFF#000000##FFFFFF
##5058CF1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD3
Deuteranopia (green-blind)
#0060CD
Tritanopia (blue-blind)
#00758B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5058cf;
/* rgb */ color: rgb(80, 88, 207);
/* oklch */ color: oklch(52.2% 0.181 275.3);
Tailwind
colors: {
  custom: {
    50: '#8d87de',
    500: '#5058cf',
    950: '#000000',
  },
}
SCSS
$custom: #5058cf;
$custom-light: #8d87de;
$custom-dark: #000000;
JSON
{
  "hex": "#5058cf",
  "rgb": {
    "r": 80,
    "g": 88,
    "b": 207
  },
  "hsl": {
    "h": 236.22,
    "s": 56.951,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5221,
    "c": 0.18103,
    "h": 275.3
  },
  "luminance": 0.1319
}

Semantic roles & 50–950 ramp

primary
#5058CF
secondary
#D8D4A3
accent
#D748E0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5058CF

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

Preview Lab → · Contrast checker → · Palette generator →

#5058CF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva