#5058CD#5058CD

#5058CD is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.1% C 0.178 H 275.4°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#5058CD
RGBrgb(80, 88, 205)
HSLhsl(236, 56%, 56%)
HSVhsv(236, 61%, 80%)
CMYKcmyk(61%, 57.1%, 0%, 19.6%)
CIE-LABlab(42.90, 32.26, -61.81)
CIE-LCHlch(42.90, 69.72, 297.56°)
OKLaboklab(52.06% 0.0167 -0.1776)
OKLCHoklch(52.06% 0.178 275.4)
XYZxyz(17.8138, 13.0913, 59.3339)
Luminance0.1309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5058CD #CDC550
analogous
#5096CD #5058CD #8650CD
triadic
#5058CD #CD5058 #58CD50
tetradic
#5058CD #CD5096 #CDC550 #50CD86
square
#5058CD #CD5096 #CDC550 #50CD86
split-complementary
#5058CD #CD8650 #96CD50
monochromatic
#242A7E #323AAE #5058CD #8085DB #AFB3E8

Accessibility & contrast

On white

5.80
#5058CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#5058CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5058CD
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5058CD#FFFFFF#000000##FFFFFF
##5058CD1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#0060CB
Tritanopia (blue-blind)
#00748A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5058cd;
/* rgb */ color: rgb(80, 88, 205);
/* oklch */ color: oklch(52.1% 0.178 275.4);
Tailwind
colors: {
  custom: {
    50: '#8d87dd',
    500: '#5058cd',
    950: '#000000',
  },
}
SCSS
$custom: #5058cd;
$custom-light: #8d87dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5058cd",
  "rgb": {
    "r": 80,
    "g": 88,
    "b": 205
  },
  "hsl": {
    "h": 236.16,
    "s": 55.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.52056,
    "c": 0.17835,
    "h": 275.4
  },
  "luminance": 0.13093
}

Semantic roles & 50–950 ramp

primary
#5058CD
secondary
#D6D3A2
accent
#D549DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5058CD

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

Preview Lab → · Contrast checker → · Palette generator →

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