#331168#331168

#331168 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.138 H 293.7°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#331168
RGBrgb(51, 17, 104)
HSLhsl(263, 72%, 24%)
HSVhsv(263, 84%, 41%)
CMYKcmyk(51%, 83.7%, 0%, 59.2%)
CIE-LABlab(16.02, 36.80, -43.99)
CIE-LCHlch(16.02, 57.35, 309.92°)
OKLaboklab(29.29% 0.0553 -0.1262)
OKLCHoklch(29.29% 0.138 293.7)
XYZxyz(4.0637, 2.1040, 13.2860)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331168 #466811
analogous
#111A68 #331168 #5E1168
triadic
#331168 #683311 #116833
tetradic
#331168 #68111A #466811 #11685E
square
#331168 #68111A #466811 #11685E
split-complementary
#331168 #685E11 #1A6811
monochromatic
#0D041A #190833 #331168 #4D1A9D #6722D1

Accessibility & contrast

On white

14.78
#331168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331168
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331168#FFFFFF#000000##FFFFFF
##3311681.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002666
Tritanopia (blue-blind)
#222A3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331168;
/* rgb */ color: rgb(51, 17, 104);
/* oklch */ color: oklch(29.3% 0.138 293.7);
Tailwind
colors: {
  custom: {
    50: '#715494',
    500: '#331168',
    950: '#000000',
  },
}
SCSS
$custom: #331168;
$custom-light: #715494;
$custom-dark: #000000;
JSON
{
  "hex": "#331168",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 263.448,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29287,
    "c": 0.13782,
    "h": 293.7
  },
  "luminance": 0.02104
}

Semantic roles & 50–950 ramp

primary
#331168
secondary
#76A035
accent
#EF39A8
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331168

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

Preview Lab → · Contrast checker → · Palette generator →

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