#331064#331064

#331064 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.134 H 295.4°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#331064
RGBrgb(51, 16, 100)
HSLhsl(265, 72%, 23%)
HSVhsv(265, 84%, 39%)
CMYKcmyk(49%, 84%, 0%, 60.8%)
CIE-LABlab(15.46, 36.12, -42.28)
CIE-LCHlch(15.46, 55.61, 310.51°)
OKLaboklab(28.77% 0.0575 -0.1212)
OKLCHoklch(28.77% 0.134 295.4)
XYZxyz(3.8502, 1.9944, 12.2362)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331064 #416410
analogous
#101764 #331064 #5D1064
triadic
#331064 #643310 #106433
tetradic
#331064 #641017 #416410 #10645D
square
#331064 #641017 #416410 #10645D
split-complementary
#331064 #645D10 #176410
monochromatic
#0D041A #18082F #331064 #4E1899 #6921CE

Accessibility & contrast

On white

15.01
#331064 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#331064 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331064
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331064#FFFFFF#000000##FFFFFF
##3310641.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002766
Deuteranopia (green-blind)
#002562
Tritanopia (blue-blind)
#25283A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331064;
/* rgb */ color: rgb(51, 16, 100);
/* oklch */ color: oklch(28.8% 0.134 295.4);
Tailwind
colors: {
  custom: {
    50: '#715391',
    500: '#331064',
    950: '#000000',
  },
}
SCSS
$custom: #331064;
$custom-light: #715391;
$custom-dark: #000000;
JSON
{
  "hex": "#331064",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 100
  },
  "hsl": {
    "h": 265,
    "s": 72.414,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28769,
    "c": 0.13417,
    "h": 295.4
  },
  "luminance": 0.01994
}

Semantic roles & 50–950 ramp

primary
#331064
secondary
#719D33
accent
#EF39A3
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331064

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

Preview Lab → · Contrast checker → · Palette generator →

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