#51339F#51339F

#51339F is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.2% C 0.165 H 290.3°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#51339F
RGBrgb(81, 51, 159)
HSLhsl(257, 51%, 41%)
HSVhsv(257, 68%, 62%)
CMYKcmyk(49.1%, 67.9%, 0%, 37.6%)
CIE-LABlab(30.93, 40.16, -54.11)
CIE-LCHlch(30.93, 67.39, 306.58°)
OKLaboklab(42.2% 0.0572 -0.1551)
OKLCHoklch(42.2% 0.165 290.3)
XYZxyz(10.8334, 6.6198, 33.5011)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51339F #819F33
analogous
#334B9F #51339F #87339F
triadic
#51339F #9F5133 #339F51
tetradic
#51339F #9F334B #819F33 #339F87
square
#51339F #9F334B #819F33 #339F87
split-complementary
#51339F #9F8733 #4B9F33
monochromatic
#221542 #392471 #51339F #6C4AC5 #9279D4

Accessibility & contrast

On white

9.04
#51339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#51339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51339F
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51339F#FFFFFF#000000##FFFFFF
##51339F1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#00469D
Tritanopia (blue-blind)
#374E64
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #51339f;
/* rgb */ color: rgb(81, 51, 159);
/* oklch */ color: oklch(42.2% 0.165 290.3);
Tailwind
colors: {
  custom: {
    50: '#896dbc',
    500: '#51339f',
    950: '#000000',
  },
}
SCSS
$custom: #51339f;
$custom-light: #896dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#51339f",
  "rgb": {
    "r": 81,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 256.667,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42195,
    "c": 0.1653,
    "h": 290.3
  },
  "luminance": 0.0662
}

Semantic roles & 50–950 ramp

primary
#51339F
secondary
#A8BC71
accent
#DB4DB3
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #51339F

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

Preview Lab → · Contrast checker → · Palette generator →

#51339F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva