#331675#331675

#331675 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.148 H 288.5°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#331675
RGBrgb(51, 22, 117)
HSLhsl(258, 68%, 27%)
HSVhsv(258, 81%, 46%)
CMYKcmyk(56.4%, 81.2%, 0%, 54.1%)
CIE-LABlab(18.20, 38.21, -48.87)
CIE-LCHlch(18.20, 62.04, 308.02°)
OKLaboklab(31.21% 0.047 -0.1406)
OKLCHoklch(31.21% 0.148 288.5)
XYZxyz(4.8621, 2.5617, 17.0644)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331675 #587516
analogous
#162875 #331675 #631675
triadic
#331675 #753316 #167533
tetradic
#331675 #751628 #587516 #167563
square
#331675 #751628 #587516 #167563
split-complementary
#331675 #756316 #287516
monochromatic
#0B051A #1D0C41 #331675 #4920A9 #622ED8

Accessibility & contrast

On white

13.89
#331675 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#331675 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331675
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331675#FFFFFF#000000##FFFFFF
##3316751.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002A73
Tritanopia (blue-blind)
#183145
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331675;
/* rgb */ color: rgb(51, 22, 117);
/* oklch */ color: oklch(31.2% 0.148 288.5);
Tailwind
colors: {
  custom: {
    50: '#73579e',
    500: '#331675',
    950: '#000000',
  },
}
SCSS
$custom: #331675;
$custom-light: #73579e;
$custom-dark: #000000;
JSON
{
  "hex": "#331675",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 117
  },
  "hsl": {
    "h": 258.316,
    "s": 68.345,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31208,
    "c": 0.14826,
    "h": 288.5
  },
  "luminance": 0.02562
}

Semantic roles & 50–950 ramp

primary
#331675
secondary
#89AB3C
accent
#EB3DB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331675

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

Preview Lab → · Contrast checker → · Palette generator →

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