#331173#331173

#331173 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.4% C 0.151 H 289.9°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#331173
RGBrgb(51, 17, 115)
HSLhsl(261, 74%, 26%)
HSVhsv(261, 85%, 45%)
CMYKcmyk(55.7%, 85.2%, 0%, 54.9%)
CIE-LABlab(17.19, 39.93, -49.24)
CIE-LCHlch(17.19, 63.39, 309.04°)
OKLaboklab(30.45% 0.0513 -0.1416)
OKLCHoklch(30.45% 0.151 289.9)
XYZxyz(4.6593, 2.3423, 16.4229)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331173 #517311
analogous
#112073 #331173 #641173
triadic
#331173 #733311 #117333
tetradic
#331173 #731120 #517311 #117364
square
#331173 #731120 #517311 #117364
split-complementary
#331173 #736411 #207311
monochromatic
#0C041B #1B093E #331173 #4B19A8 #6221DE

Accessibility & contrast

On white

14.30
#331173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331173
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331173#FFFFFF#000000##FFFFFF
##3311731.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#1A2F43
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331173;
/* rgb */ color: rgb(51, 17, 115);
/* oklch */ color: oklch(30.4% 0.151 289.9);
Tailwind
colors: {
  custom: {
    50: '#73559c',
    500: '#331173',
    950: '#000000',
  },
}
SCSS
$custom: #331173;
$custom-light: #73559c;
$custom-dark: #000000;
JSON
{
  "hex": "#331173",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 260.816,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30446,
    "c": 0.15062,
    "h": 289.9
  },
  "luminance": 0.02343
}

Semantic roles & 50–950 ramp

primary
#331173
secondary
#82AA36
accent
#F137B0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331173

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

Preview Lab → · Contrast checker → · Palette generator →

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