#331283#331283

#331283 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.168 H 285.4°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#331283
RGBrgb(51, 18, 131)
HSLhsl(258, 76%, 29%)
HSVhsv(258, 86%, 51%)
CMYKcmyk(61.1%, 86.3%, 0%, 48.6%)
CIE-LABlab(19.12, 44.07, -56.28)
CIE-LCHlch(19.12, 71.49, 308.06°)
OKLaboklab(32.3% 0.0446 -0.1622)
OKLCHoklch(32.3% 0.168 285.4)
XYZxyz(5.6770, 2.7748, 21.7048)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331283 #628312
analogous
#122A83 #331283 #6C1283
triadic
#331283 #833312 #128333
tetradic
#331283 #83122A #628312 #12836C
square
#331283 #83122A #628312 #12836C
split-complementary
#331283 #836C12 #2A8312
monochromatic
#0A041B #1E0B4D #331283 #4819B9 #622DE2

Accessibility & contrast

On white

13.50
#331283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#331283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331283
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331283#FFFFFF#000000##FFFFFF
##3312831.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003186
Deuteranopia (green-blind)
#002B81
Tritanopia (blue-blind)
#02364D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #331283;
/* rgb */ color: rgb(51, 18, 131);
/* oklch */ color: oklch(32.3% 0.168 285.4);
Tailwind
colors: {
  custom: {
    50: '#7656a8',
    500: '#331283',
    950: '#000000',
  },
}
SCSS
$custom: #331283;
$custom-light: #7656a8;
$custom-dark: #000000;
JSON
{
  "hex": "#331283",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 131
  },
  "hsl": {
    "h": 257.522,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32303,
    "c": 0.16819,
    "h": 285.4
  },
  "luminance": 0.02775
}

Semantic roles & 50–950 ramp

primary
#331283
secondary
#93B838
accent
#F235BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #331283

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

Preview Lab → · Contrast checker → · Palette generator →

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