#331769#331769

#331769 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.132 H 292.1°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#331769
RGBrgb(51, 23, 105)
HSLhsl(260, 64%, 25%)
HSVhsv(260, 78%, 41%)
CMYKcmyk(51.4%, 78.1%, 0%, 58.8%)
CIE-LABlab(17.16, 34.12, -42.78)
CIE-LCHlch(17.16, 54.72, 308.58°)
OKLaboklab(30.11% 0.0498 -0.1227)
OKLCHoklch(30.11% 0.132 292.1)
XYZxyz(4.2207, 2.3364, 13.5904)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331769 #4D6917
analogous
#172469 #331769 #5C1769
triadic
#331769 #693317 #176933
tetradic
#331769 #691724 #4D6917 #17695C
square
#331769 #691724 #4D6917 #17695C
split-complementary
#331769 #695C17 #246917
monochromatic
#0C0519 #1B0C37 #331769 #4B229B #642DCD

Accessibility & contrast

On white

14.31
#331769 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#331769 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331769
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331769#FFFFFF#000000##FFFFFF
##3317691.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331769;
/* rgb */ color: rgb(51, 23, 105);
/* oklch */ color: oklch(30.1% 0.132 292.1);
Tailwind
colors: {
  custom: {
    50: '#715795',
    500: '#331769',
    950: '#000000',
  },
}
SCSS
$custom: #331769;
$custom-light: #715795;
$custom-dark: #000000;
JSON
{
  "hex": "#331769",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 105
  },
  "hsl": {
    "h": 260.488,
    "s": 64.063,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30114,
    "c": 0.13245,
    "h": 292.1
  },
  "luminance": 0.02337
}

Semantic roles & 50–950 ramp

primary
#331769
secondary
#7E9F3D
accent
#E741AE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331769

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

Preview Lab → · Contrast checker → · Palette generator →

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