#331174#331174

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

Color values

HEX#331174
RGBrgb(51, 17, 116)
HSLhsl(261, 74%, 26%)
HSVhsv(261, 85%, 45%)
CMYKcmyk(56%, 85.3%, 0%, 54.5%)
CIE-LABlab(17.30, 40.22, -49.70)
CIE-LCHlch(17.30, 63.94, 308.98°)
OKLaboklab(30.55% 0.0509 -0.143)
OKLCHoklch(30.55% 0.152 289.6)
XYZxyz(4.7172, 2.3654, 16.7276)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331174 #527411
analogous
#112074 #331174 #641174
triadic
#331174 #743311 #117433
tetradic
#331174 #741120 #527411 #117464
square
#331174 #741120 #527411 #117464
split-complementary
#331174 #746411 #207411
monochromatic
#0C041B #1C093F #331174 #4A19A9 #6221DE

Accessibility & contrast

On white

14.25
#331174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331174
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331174#FFFFFF#000000##FFFFFF
##3311741.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#192F44
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331174;
/* rgb */ color: rgb(51, 17, 116);
/* oklch */ color: oklch(30.6% 0.152 289.6);
Tailwind
colors: {
  custom: {
    50: '#73559d',
    500: '#331174',
    950: '#000000',
  },
}
SCSS
$custom: #331174;
$custom-light: #73559d;
$custom-dark: #000000;
JSON
{
  "hex": "#331174",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 260.606,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30554,
    "c": 0.15177,
    "h": 289.6
  },
  "luminance": 0.02366
}

Semantic roles & 50–950 ramp

primary
#331174
secondary
#83AB36
accent
#F137B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331174

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

Preview Lab → · Contrast checker → · Palette generator →

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