#331375#331375

#331375 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.151 H 289.0°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#331375
RGBrgb(51, 19, 117)
HSLhsl(260, 72%, 27%)
HSVhsv(260, 84%, 46%)
CMYKcmyk(56.4%, 83.8%, 0%, 54.1%)
CIE-LABlab(17.71, 39.63, -49.68)
CIE-LCHlch(17.71, 63.54, 308.58°)
OKLaboklab(30.87% 0.0492 -0.1429)
OKLCHoklch(30.87% 0.151 289)
XYZxyz(4.8081, 2.4537, 17.0464)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331375 #557513
analogous
#132475 #331375 #641375
triadic
#331375 #753313 #137533
tetradic
#331375 #751324 #557513 #137564
square
#331375 #751324 #557513 #137564
split-complementary
#331375 #756413 #247513
monochromatic
#0B041A #1C0A40 #331375 #4A1CAA #6227DC

Accessibility & contrast

On white

14.09
#331375 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#331375 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331375
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331375#FFFFFF#000000##FFFFFF
##3313751.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D78
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#183045
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331375;
/* rgb */ color: rgb(51, 19, 117);
/* oklch */ color: oklch(30.9% 0.151 289.0);
Tailwind
colors: {
  custom: {
    50: '#73569e',
    500: '#331375',
    950: '#000000',
  },
}
SCSS
$custom: #331375;
$custom-light: #73569e;
$custom-dark: #000000;
JSON
{
  "hex": "#331375",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 117
  },
  "hsl": {
    "h": 259.592,
    "s": 72.059,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30869,
    "c": 0.15115,
    "h": 289
  },
  "luminance": 0.02454
}

Semantic roles & 50–950 ramp

primary
#331375
secondary
#86AB38
accent
#EF39B3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331375

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

Preview Lab → · Contrast checker → · Palette generator →

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