#331169#331169

#331169 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.139 H 293.3°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#331169
RGBrgb(51, 17, 105)
HSLhsl(263, 72%, 24%)
HSVhsv(263, 84%, 41%)
CMYKcmyk(51.4%, 83.8%, 0%, 58.8%)
CIE-LABlab(16.13, 37.09, -44.47)
CIE-LCHlch(16.13, 57.91, 309.82°)
OKLaboklab(29.39% 0.0549 -0.1277)
OKLCHoklch(29.39% 0.139 293.3)
XYZxyz(4.1148, 2.1245, 13.5551)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331169 #476911
analogous
#111B69 #331169 #5F1169
triadic
#331169 #693311 #116933
tetradic
#331169 #69111B #476911 #11695F
square
#331169 #69111B #476911 #11695F
split-complementary
#331169 #695F11 #1B6911
monochromatic
#0D041A #190834 #331169 #4D1A9E #6622D2

Accessibility & contrast

On white

14.74
#331169 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#331169 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331169
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331169#FFFFFF#000000##FFFFFF
##3311691.0014.741.4314.74
#FFFFFF14.741.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296B
Deuteranopia (green-blind)
#002667
Tritanopia (blue-blind)
#222A3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331169;
/* rgb */ color: rgb(51, 17, 105);
/* oklch */ color: oklch(29.4% 0.139 293.3);
Tailwind
colors: {
  custom: {
    50: '#725495',
    500: '#331169',
    950: '#000000',
  },
}
SCSS
$custom: #331169;
$custom-light: #725495;
$custom-dark: #000000;
JSON
{
  "hex": "#331169",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 105
  },
  "hsl": {
    "h": 263.182,
    "s": 72.131,
    "l": 23.922
  },
  "oklch": {
    "l": 0.2939,
    "c": 0.13899,
    "h": 293.3
  },
  "luminance": 0.02125
}

Semantic roles & 50–950 ramp

primary
#331169
secondary
#77A135
accent
#EF39A9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331169

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

Preview Lab → · Contrast checker → · Palette generator →

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