#331669#331669

#331669 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.134 H 292.3°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#331669
RGBrgb(51, 22, 105)
HSLhsl(261, 65%, 25%)
HSVhsv(261, 79%, 41%)
CMYKcmyk(51.4%, 79%, 0%, 58.8%)
CIE-LABlab(16.98, 34.65, -43.08)
CIE-LCHlch(16.98, 55.28, 308.81°)
OKLaboklab(29.98% 0.0507 -0.1236)
OKLCHoklch(29.98% 0.134 292.3)
XYZxyz(4.2012, 2.2974, 13.5839)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331669 #4C6916
analogous
#162369 #331669 #5D1669
triadic
#331669 #693316 #166933
tetradic
#331669 #691623 #4C6916 #16695D
square
#331669 #691623 #4C6916 #16695D
split-complementary
#331669 #695D16 #236916
monochromatic
#0C0519 #1A0B36 #331669 #4C219C #642BCE

Accessibility & contrast

On white

14.39
#331669 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#331669 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331669
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331669#FFFFFF#000000##FFFFFF
##3316691.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6B
Deuteranopia (green-blind)
#002867
Tritanopia (blue-blind)
#222D3E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331669;
/* rgb */ color: rgb(51, 22, 105);
/* oklch */ color: oklch(30.0% 0.134 292.3);
Tailwind
colors: {
  custom: {
    50: '#715795',
    500: '#331669',
    950: '#000000',
  },
}
SCSS
$custom: #331669;
$custom-light: #715795;
$custom-dark: #000000;
JSON
{
  "hex": "#331669",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 105
  },
  "hsl": {
    "h": 260.964,
    "s": 65.354,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29984,
    "c": 0.13362,
    "h": 292.3
  },
  "luminance": 0.02298
}

Semantic roles & 50–950 ramp

primary
#331669
secondary
#7C9F3B
accent
#E83FAD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331669

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

Preview Lab → · Contrast checker → · Palette generator →

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