#332064#332064

#332064 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.0% C 0.114 H 291.1°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#332064
RGBrgb(51, 32, 100)
HSLhsl(257, 52%, 26%)
HSVhsv(257, 68%, 39%)
CMYKcmyk(49%, 68%, 0%, 60.8%)
CIE-LABlab(18.61, 27.31, -37.13)
CIE-LCHlch(18.61, 46.09, 306.34°)
OKLaboklab(31.01% 0.0411 -0.1062)
OKLCHoklch(31.01% 0.114 291.1)
XYZxyz(4.1814, 2.6568, 12.3466)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332064 #516420
analogous
#202F64 #332064 #552064
triadic
#332064 #643320 #206433
tetradic
#332064 #64202F #516420 #206455
square
#332064 #64202F #516420 #206455
split-complementary
#332064 #645520 #2F6420
monochromatic
#0C0717 #1B1136 #332064 #4B2F92 #623EC1

Accessibility & contrast

On white

13.71
#332064 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#332064 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332064
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332064#FFFFFF#000000##FFFFFF
##3320641.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E66
Deuteranopia (green-blind)
#002C63
Tritanopia (blue-blind)
#24303E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #332064;
/* rgb */ color: rgb(51, 32, 100);
/* oklch */ color: oklch(31.0% 0.114 291.1);
Tailwind
colors: {
  custom: {
    50: '#6f5c91',
    500: '#332064',
    950: '#000000',
  },
}
SCSS
$custom: #332064;
$custom-light: #6f5c91;
$custom-dark: #000000;
JSON
{
  "hex": "#332064",
  "rgb": {
    "r": 51,
    "g": 32,
    "b": 100
  },
  "hsl": {
    "h": 256.765,
    "s": 51.515,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31011,
    "c": 0.11386,
    "h": 291.1
  },
  "luminance": 0.02657
}

Semantic roles & 50–950 ramp

primary
#332064
secondary
#829848
accent
#DB4DB3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040D
muted
#7B797D

Preview Lab

Preview with #332064

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

Preview Lab → · Contrast checker → · Palette generator →

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