#332673#332673

#332673 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.4% C 0.126 H 285.0°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#332673
RGBrgb(51, 38, 115)
HSLhsl(250, 50%, 30%)
HSVhsv(250, 67%, 45%)
CMYKcmyk(55.7%, 67%, 0%, 54.9%)
CIE-LABlab(21.31, 28.40, -42.49)
CIE-LCHlch(21.31, 51.11, 303.76°)
OKLaboklab(33.37% 0.0327 -0.1219)
OKLCHoklch(33.37% 0.126 285)
XYZxyz(5.1519, 3.3276, 16.5871)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332673 #667326
analogous
#263F73 #332673 #5A2673
triadic
#332673 #733326 #267333
tetradic
#332673 #73263F #667326 #26735A
square
#332673 #73263F #667326 #26735A
split-complementary
#332673 #735A26 #3F7326
monochromatic
#0A0817 #1F1745 #332673 #4735A1 #634FC5

Accessibility & contrast

On white

12.61
#332673 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#332673 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332673
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332673#FFFFFF#000000##FFFFFF
##3326731.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003575
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#193948
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #332673;
/* rgb */ color: rgb(51, 38, 115);
/* oklch */ color: oklch(33.4% 0.126 285.0);
Tailwind
colors: {
  custom: {
    50: '#71619c',
    500: '#332673',
    950: '#000000',
  },
}
SCSS
$custom: #332673;
$custom-light: #71619c;
$custom-dark: #000000;
JSON
{
  "hex": "#332673",
  "rgb": {
    "r": 51,
    "g": 38,
    "b": 115
  },
  "hsl": {
    "h": 250.13,
    "s": 50.327,
    "l": 30
  },
  "oklch": {
    "l": 0.33368,
    "c": 0.12624,
    "h": 285
  },
  "luminance": 0.03328
}

Semantic roles & 50–950 ramp

primary
#332673
secondary
#97A64F
accent
#DA4EC2
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #332673

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

Preview Lab → · Contrast checker → · Palette generator →

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