#331175#331175

#331175 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.153 H 289.3°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#331175
RGBrgb(51, 17, 117)
HSLhsl(260, 75%, 26%)
HSVhsv(260, 85%, 46%)
CMYKcmyk(56.4%, 85.5%, 0%, 54.1%)
CIE-LABlab(17.41, 40.50, -50.17)
CIE-LCHlch(17.41, 64.48, 308.91°)
OKLaboklab(30.66% 0.0505 -0.1443)
OKLCHoklch(30.66% 0.153 289.3)
XYZxyz(4.7756, 2.3888, 17.0356)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331175 #537511
analogous
#112175 #331175 #651175
triadic
#331175 #753311 #117533
tetradic
#331175 #751121 #537511 #117565
square
#331175 #751121 #537511 #117565
split-complementary
#331175 #756511 #217511
monochromatic
#0C041B #1C0940 #331175 #4A19AA #6222DF

Accessibility & contrast

On white

14.21
#331175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#331175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331175
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331175#FFFFFF#000000##FFFFFF
##3311751.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331175;
/* rgb */ color: rgb(51, 17, 117);
/* oklch */ color: oklch(30.7% 0.153 289.3);
Tailwind
colors: {
  custom: {
    50: '#74559e',
    500: '#331175',
    950: '#000000',
  },
}
SCSS
$custom: #331175;
$custom-light: #74559e;
$custom-dark: #000000;
JSON
{
  "hex": "#331175",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 117
  },
  "hsl": {
    "h": 260.4,
    "s": 74.627,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30662,
    "c": 0.15292,
    "h": 289.3
  },
  "luminance": 0.02389
}

Semantic roles & 50–950 ramp

primary
#331175
secondary
#84AC36
accent
#F137B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331175

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

Preview Lab → · Contrast checker → · Palette generator →

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