#5337B3#5337B3

#5337B3 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.7% C 0.185 H 286.7°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#5337B3
RGBrgb(83, 55, 179)
HSLhsl(254, 53%, 46%)
HSVhsv(254, 69%, 70%)
CMYKcmyk(53.6%, 69.3%, 0%, 29.8%)
CIE-LABlab(33.62, 44.20, -61.71)
CIE-LCHlch(33.62, 75.91, 305.61°)
OKLaboklab(44.69% 0.0531 -0.1773)
OKLCHoklch(44.69% 0.185 286.7)
XYZxyz(13.0677, 7.8254, 43.4610)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5337B3 #97B337
analogous
#3759B3 #5337B3 #9137B3
triadic
#5337B3 #B35337 #37B353
tetradic
#5337B3 #B33759 #97B337 #37B391
square
#5337B3 #B33759 #97B337 #37B391
split-complementary
#5337B3 #B39137 #59B337
monochromatic
#281A55 #3D2984 #5337B3 #745BCD #9C8ADB

Accessibility & contrast

On white

8.19
#5337B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5337B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5337B3
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5337B3#FFFFFF#000000##FFFFFF
##5337B31.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#004BB1
Tritanopia (blue-blind)
#2C5771
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5337b3;
/* rgb */ color: rgb(83, 55, 179);
/* oklch */ color: oklch(44.7% 0.185 286.7);
Tailwind
colors: {
  custom: {
    50: '#8d70cb',
    500: '#5337b3',
    950: '#000000',
  },
}
SCSS
$custom: #5337b3;
$custom-light: #8d70cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5337b3",
  "rgb": {
    "r": 83,
    "g": 55,
    "b": 179
  },
  "hsl": {
    "h": 253.548,
    "s": 52.991,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44693,
    "c": 0.1851,
    "h": 286.7
  },
  "luminance": 0.07826
}

Semantic roles & 50–950 ramp

primary
#5337B3
secondary
#B6C581
accent
#DC4BBC
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5337B3

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

Preview Lab → · Contrast checker → · Palette generator →

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