#331683#331683

#331683 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.165 H 284.9°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#331683
RGBrgb(51, 22, 131)
HSLhsl(256, 71%, 30%)
HSVhsv(256, 83%, 51%)
CMYKcmyk(61.1%, 83.2%, 0%, 48.6%)
CIE-LABlab(19.70, 42.36, -55.31)
CIE-LCHlch(19.70, 69.67, 307.44°)
OKLaboklab(32.71% 0.0423 -0.1594)
OKLCHoklch(32.71% 0.165 284.9)
XYZxyz(5.7476, 2.9160, 21.7283)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331683 #668316
analogous
#163083 #331683 #691683
triadic
#331683 #833316 #168333
tetradic
#331683 #831630 #668316 #168369
square
#331683 #831630 #668316 #168369
split-complementary
#331683 #836916 #308316
monochromatic
#0A041A #1F0D4F #331683 #471FB7 #6336DD

Accessibility & contrast

On white

13.26
#331683 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#331683 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331683
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331683#FFFFFF#000000##FFFFFF
##3316831.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003386
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#01374D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #331683;
/* rgb */ color: rgb(51, 22, 131);
/* oklch */ color: oklch(32.7% 0.165 284.9);
Tailwind
colors: {
  custom: {
    50: '#7658a8',
    500: '#331683',
    950: '#000000',
  },
}
SCSS
$custom: #331683;
$custom-light: #7658a8;
$custom-dark: #000000;
JSON
{
  "hex": "#331683",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 131
  },
  "hsl": {
    "h": 255.963,
    "s": 71.242,
    "l": 30
  },
  "oklch": {
    "l": 0.32706,
    "c": 0.16493,
    "h": 284.9
  },
  "luminance": 0.02916
}

Semantic roles & 50–950 ramp

primary
#331683
secondary
#97B73D
accent
#EE3ABE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #331683

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

Preview Lab → · Contrast checker → · Palette generator →

#331683 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva