#331068#331068

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

Color values

HEX#331068
RGBrgb(51, 16, 104)
HSLhsl(264, 73%, 24%)
HSVhsv(264, 85%, 41%)
CMYKcmyk(51%, 84.6%, 0%, 59.2%)
CIE-LABlab(15.87, 37.25, -44.24)
CIE-LCHlch(15.87, 57.83, 310.10°)
OKLaboklab(29.18% 0.0561 -0.127)
OKLCHoklch(29.18% 0.139 293.8)
XYZxyz(4.0485, 2.0737, 13.2810)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331068 #456810
analogous
#101968 #331068 #5F1068
triadic
#331068 #683310 #106833
tetradic
#331068 #681019 #456810 #10685F
square
#331068 #681019 #456810 #10685F
split-complementary
#331068 #685F10 #196810
monochromatic
#0D041B #190833 #331068 #4D189D #6720D2

Accessibility & contrast

On white

14.84
#331068 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331068
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331068#FFFFFF#000000##FFFFFF
##3310681.0014.841.4114.84
#FFFFFF14.841.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286A
Deuteranopia (green-blind)
#002666
Tritanopia (blue-blind)
#23293C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331068;
/* rgb */ color: rgb(51, 16, 104);
/* oklch */ color: oklch(29.2% 0.139 293.8);
Tailwind
colors: {
  custom: {
    50: '#715394',
    500: '#331068',
    950: '#000000',
  },
}
SCSS
$custom: #331068;
$custom-light: #715394;
$custom-dark: #000000;
JSON
{
  "hex": "#331068",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 104
  },
  "hsl": {
    "h": 263.864,
    "s": 73.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.2918,
    "c": 0.1388,
    "h": 293.8
  },
  "luminance": 0.02074
}

Semantic roles & 50–950 ramp

primary
#331068
secondary
#75A034
accent
#F038A7
background
#F7F4F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331068

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

Preview Lab → · Contrast checker → · Palette generator →

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