#331066#331066

#331066 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.136 H 294.6°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#331066
RGBrgb(51, 16, 102)
HSLhsl(264, 73%, 23%)
HSVhsv(264, 84%, 40%)
CMYKcmyk(50%, 84.3%, 0%, 60%)
CIE-LABlab(15.66, 36.69, -43.26)
CIE-LCHlch(15.66, 56.72, 310.30°)
OKLaboklab(28.97% 0.0568 -0.1241)
OKLCHoklch(28.97% 0.136 294.6)
XYZxyz(3.9481, 2.0336, 12.7523)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331066 #436610
analogous
#101866 #331066 #5E1066
triadic
#331066 #663310 #106633
tetradic
#331066 #661018 #436610 #10665E
square
#331066 #661018 #436610 #10665E
split-complementary
#331066 #665E10 #186610
monochromatic
#0D041A #190831 #331066 #4D189B #6821D0

Accessibility & contrast

On white

14.93
#331066 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#331066 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331066
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331066#FFFFFF#000000##FFFFFF
##3310661.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#24293B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331066;
/* rgb */ color: rgb(51, 16, 102);
/* oklch */ color: oklch(29.0% 0.136 294.6);
Tailwind
colors: {
  custom: {
    50: '#715392',
    500: '#331066',
    950: '#000000',
  },
}
SCSS
$custom: #331066;
$custom-light: #715392;
$custom-dark: #000000;
JSON
{
  "hex": "#331066",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 102
  },
  "hsl": {
    "h": 264.419,
    "s": 72.881,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28974,
    "c": 0.13649,
    "h": 294.6
  },
  "luminance": 0.02034
}

Semantic roles & 50–950 ramp

primary
#331066
secondary
#739E33
accent
#F038A5
background
#F7F4F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331066

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

Preview Lab → · Contrast checker → · Palette generator →

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