#331075#331075

#331075 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.154 H 289.4°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#331075
RGBrgb(51, 16, 117)
HSLhsl(261, 76%, 26%)
HSVhsv(261, 86%, 46%)
CMYKcmyk(56.4%, 86.3%, 0%, 54.1%)
CIE-LABlab(17.27, 40.92, -50.40)
CIE-LCHlch(17.27, 64.92, 309.07°)
OKLaboklab(30.56% 0.0512 -0.145)
OKLCHoklch(30.56% 0.154 289.4)
XYZxyz(4.7605, 2.3585, 17.0306)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331075 #527510
analogous
#101F75 #331075 #651075
triadic
#331075 #753310 #107533
tetradic
#331075 #75101F #527510 #107565
square
#331075 #75101F #527510 #107565
split-complementary
#331075 #756510 #1F7510
monochromatic
#0C041B #1C093F #331075 #4A17AB #621FE0

Accessibility & contrast

On white

14.27
#331075 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#331075 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331075
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331075#FFFFFF#000000##FFFFFF
##3310751.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002873
Tritanopia (blue-blind)
#182F44
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331075;
/* rgb */ color: rgb(51, 16, 117);
/* oklch */ color: oklch(30.6% 0.154 289.4);
Tailwind
colors: {
  custom: {
    50: '#74549e',
    500: '#331075',
    950: '#000000',
  },
}
SCSS
$custom: #331075;
$custom-light: #74549e;
$custom-dark: #000000;
JSON
{
  "hex": "#331075",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 117
  },
  "hsl": {
    "h": 260.792,
    "s": 75.94,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30564,
    "c": 0.15377,
    "h": 289.4
  },
  "luminance": 0.02359
}

Semantic roles & 50–950 ramp

primary
#331075
secondary
#83AC35
accent
#F335B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331075

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

Preview Lab → · Contrast checker → · Palette generator →

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