#331167#331167

#331167 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.137 H 294.0°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#331167
RGBrgb(51, 17, 103)
HSLhsl(264, 72%, 24%)
HSVhsv(264, 83%, 40%)
CMYKcmyk(50.5%, 83.5%, 0%, 59.6%)
CIE-LABlab(15.92, 36.52, -43.50)
CIE-LCHlch(15.92, 56.79, 310.01°)
OKLaboklab(29.19% 0.0556 -0.1248)
OKLCHoklch(29.19% 0.137 294)
XYZxyz(4.0132, 2.0839, 13.0201)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331167 #456711
analogous
#111A67 #331167 #5E1167
triadic
#331167 #673311 #116733
tetradic
#331167 #67111A #456711 #11675E
square
#331167 #67111A #456711 #11675E
split-complementary
#331167 #675E11 #1A6711
monochromatic
#0D041A #190832 #331167 #4D1A9C #6722D0

Accessibility & contrast

On white

14.82
#331167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#331167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331167
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331167#FFFFFF#000000##FFFFFF
##3311671.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002869
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#23293C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331167;
/* rgb */ color: rgb(51, 17, 103);
/* oklch */ color: oklch(29.2% 0.137 294.0);
Tailwind
colors: {
  custom: {
    50: '#715493',
    500: '#331167',
    950: '#000000',
  },
}
SCSS
$custom: #331167;
$custom-light: #715493;
$custom-dark: #000000;
JSON
{
  "hex": "#331167",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 263.721,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29185,
    "c": 0.13665,
    "h": 294
  },
  "luminance": 0.02084
}

Semantic roles & 50–950 ramp

primary
#331167
secondary
#759F35
accent
#EE39A7
background
#F7F5F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331167

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

Preview Lab → · Contrast checker → · Palette generator →

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