#5035B9#5035B9

#5035B9 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.7% C 0.195 H 284.7°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#5035B9
RGBrgb(80, 53, 185)
HSLhsl(252, 55%, 47%)
HSVhsv(252, 71%, 73%)
CMYKcmyk(56.8%, 71.4%, 0%, 27.5%)
CIE-LABlab(33.46, 46.60, -65.53)
CIE-LCHlch(33.46, 80.41, 305.42°)
OKLaboklab(44.68% 0.0494 -0.1886)
OKLCHoklch(44.68% 0.195 284.7)
XYZxyz(13.3357, 7.7537, 46.6834)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5035B9 #9EB935
analogous
#355CB9 #5035B9 #9235B9
triadic
#5035B9 #B95035 #35B950
tetradic
#5035B9 #B9355C #9EB935 #35B992
square
#5035B9 #B9355C #9EB935 #35B992
split-complementary
#5035B9 #B99235 #5CB935
monochromatic
#271A5A #3B2789 #5035B9 #735BD0 #9C8BDE

Accessibility & contrast

On white

8.23
#5035B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5035B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5035B9
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5035B9#FFFFFF#000000##FFFFFF
##5035B91.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BD
Deuteranopia (green-blind)
#004AB6
Tritanopia (blue-blind)
#1B5873
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5035b9;
/* rgb */ color: rgb(80, 53, 185);
/* oklch */ color: oklch(44.7% 0.195 284.7);
Tailwind
colors: {
  custom: {
    50: '#8c6fcf',
    500: '#5035b9',
    950: '#000000',
  },
}
SCSS
$custom: #5035b9;
$custom-light: #8c6fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#5035b9",
  "rgb": {
    "r": 80,
    "g": 53,
    "b": 185
  },
  "hsl": {
    "h": 252.273,
    "s": 55.462,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44678,
    "c": 0.19496,
    "h": 284.7
  },
  "luminance": 0.07754
}

Semantic roles & 50–950 ramp

primary
#5035B9
secondary
#BAC882
accent
#DF49C0
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5035B9

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

Preview Lab → · Contrast checker → · Palette generator →

#5035B9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva