#331083#331083

#331083 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.1% C 0.170 H 285.6°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#331083
RGBrgb(51, 16, 131)
HSLhsl(258, 78%, 29%)
HSVhsv(258, 88%, 51%)
CMYKcmyk(61.1%, 87.8%, 0%, 48.6%)
CIE-LABlab(18.85, 44.86, -56.72)
CIE-LCHlch(18.85, 72.31, 308.34°)
OKLaboklab(32.12% 0.0456 -0.1634)
OKLCHoklch(32.12% 0.17 285.6)
XYZxyz(5.6460, 2.7127, 21.6944)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331083 #608310
analogous
#102783 #331083 #6D1083
triadic
#331083 #833310 #108333
tetradic
#331083 #831027 #608310 #10836D
square
#331083 #831027 #608310 #10836D
split-complementary
#331083 #836D10 #278310
monochromatic
#0B031B #1E094C #331083 #4817BA #6229E5

Accessibility & contrast

On white

13.61
#331083 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#331083 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331083
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331083#FFFFFF#000000##FFFFFF
##3310831.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003186
Deuteranopia (green-blind)
#002A81
Tritanopia (blue-blind)
#02354C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #331083;
/* rgb */ color: rgb(51, 16, 131);
/* oklch */ color: oklch(32.1% 0.170 285.6);
Tailwind
colors: {
  custom: {
    50: '#7656a8',
    500: '#331083',
    950: '#000000',
  },
}
SCSS
$custom: #331083;
$custom-light: #7656a8;
$custom-dark: #000000;
JSON
{
  "hex": "#331083",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 131
  },
  "hsl": {
    "h": 258.261,
    "s": 78.231,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32123,
    "c": 0.16966,
    "h": 285.6
  },
  "luminance": 0.02713
}

Semantic roles & 50–950 ramp

primary
#331083
secondary
#91B936
accent
#F533BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #331083

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

Preview Lab → · Contrast checker → · Palette generator →

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