#331883#331883

#331883 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.163 H 284.6°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#331883
RGBrgb(51, 24, 131)
HSLhsl(255, 69%, 30%)
HSVhsv(255, 82%, 51%)
CMYKcmyk(61.1%, 81.7%, 0%, 48.6%)
CIE-LABlab(20.03, 41.42, -54.78)
CIE-LCHlch(20.03, 68.68, 307.09°)
OKLaboklab(32.93% 0.0411 -0.1579)
OKLCHoklch(32.93% 0.163 284.6)
XYZxyz(5.7874, 2.9954, 21.7415)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331883 #688318
analogous
#183383 #331883 #681883
triadic
#331883 #833318 #188333
tetradic
#331883 #831833 #688318 #188368
square
#331883 #831833 #688318 #188368
split-complementary
#331883 #836818 #338318
monochromatic
#0B051C #1F0F4F #331883 #4721B7 #633ADB

Accessibility & contrast

On white

13.13
#331883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#331883 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331883
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331883#FFFFFF#000000##FFFFFF
##3318831.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003386
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#01384E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #331883;
/* rgb */ color: rgb(51, 24, 131);
/* oklch */ color: oklch(32.9% 0.163 284.6);
Tailwind
colors: {
  custom: {
    50: '#7659a8',
    500: '#331883',
    950: '#000000',
  },
}
SCSS
$custom: #331883;
$custom-light: #7659a8;
$custom-dark: #000000;
JSON
{
  "hex": "#331883",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 131
  },
  "hsl": {
    "h": 255.14,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32929,
    "c": 0.16314,
    "h": 284.6
  },
  "luminance": 0.02996
}

Semantic roles & 50–950 ramp

primary
#331883
secondary
#99B740
accent
#EC3CBF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #331883

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

Preview Lab → · Contrast checker → · Palette generator →

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