#331165#331165

#331165 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.134 H 294.8°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#331165
RGBrgb(51, 17, 101)
HSLhsl(264, 71%, 23%)
HSVhsv(264, 83%, 40%)
CMYKcmyk(49.5%, 83.2%, 0%, 60.4%)
CIE-LABlab(15.72, 35.95, -42.51)
CIE-LCHlch(15.72, 55.67, 310.22°)
OKLaboklab(28.98% 0.0563 -0.1219)
OKLCHoklch(28.98% 0.134 294.8)
XYZxyz(3.9140, 2.0442, 12.4977)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331165 #436511
analogous
#111965 #331165 #5D1165
triadic
#331165 #653311 #116533
tetradic
#331165 #651119 #436511 #11655D
square
#331165 #651119 #436511 #11655D
split-complementary
#331165 #655D11 #196511
monochromatic
#0D041A #190831 #331165 #4D1A99 #6823CE

Accessibility & contrast

On white

14.91
#331165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#331165 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331165
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331165#FFFFFF#000000##FFFFFF
##3311651.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002867
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#24293B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331165;
/* rgb */ color: rgb(51, 17, 101);
/* oklch */ color: oklch(29.0% 0.134 294.8);
Tailwind
colors: {
  custom: {
    50: '#715492',
    500: '#331165',
    950: '#000000',
  },
}
SCSS
$custom: #331165;
$custom-light: #715492;
$custom-dark: #000000;
JSON
{
  "hex": "#331165",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 264.286,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28981,
    "c": 0.1343,
    "h": 294.8
  },
  "luminance": 0.02044
}

Semantic roles & 50–950 ramp

primary
#331165
secondary
#739D35
accent
#EE3AA5
background
#F7F5F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331165

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

Preview Lab → · Contrast checker → · Palette generator →

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