#5337BE#5337BE

#5337BE is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.7% C 0.198 H 284.9°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#5337BE
RGBrgb(83, 55, 190)
HSLhsl(252, 55%, 48%)
HSVhsv(252, 71%, 75%)
CMYKcmyk(56.3%, 71.1%, 0%, 25.5%)
CIE-LABlab(34.58, 47.46, -66.64)
CIE-LCHlch(34.58, 81.82, 305.46°)
OKLaboklab(45.67% 0.051 -0.1918)
OKLCHoklch(45.67% 0.198 284.9)
XYZxyz(14.2249, 8.2882, 49.5554)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5337BE #A2BE37
analogous
#375FBE #5337BE #9637BE
triadic
#5337BE #BE5337 #37BE53
tetradic
#5337BE #BE375F #A2BE37 #37BE96
square
#5337BE #BE375F #A2BE37 #37BE96
split-complementary
#5337BE #BE9637 #5FBE37
monochromatic
#2A1C5F #3E298F #5337BE #7861D1 #A190DF

Accessibility & contrast

On white

7.90
#5337BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5337BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5337BE
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5337BE#FFFFFF#000000##FFFFFF
##5337BE1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C2
Deuteranopia (green-blind)
#004DBB
Tritanopia (blue-blind)
#1F5B77
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5337be;
/* rgb */ color: rgb(83, 55, 190);
/* oklch */ color: oklch(45.7% 0.198 284.9);
Tailwind
colors: {
  custom: {
    50: '#8e70d3',
    500: '#5337be',
    950: '#000000',
  },
}
SCSS
$custom: #5337be;
$custom-light: #8e70d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5337be",
  "rgb": {
    "r": 83,
    "g": 55,
    "b": 190
  },
  "hsl": {
    "h": 252.444,
    "s": 55.102,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45674,
    "c": 0.19845,
    "h": 284.9
  },
  "luminance": 0.08289
}

Semantic roles & 50–950 ramp

primary
#5337BE
secondary
#BCCA87
accent
#DE49C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5337BE

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

Preview Lab → · Contrast checker → · Palette generator →

#5337BE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva