#331765#331765

#331765 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.127 H 293.5°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#331765
RGBrgb(51, 23, 101)
HSLhsl(262, 63%, 24%)
HSVhsv(262, 77%, 40%)
CMYKcmyk(49.5%, 77.2%, 0%, 60.4%)
CIE-LABlab(16.78, 32.92, -40.78)
CIE-LCHlch(16.78, 52.41, 308.92°)
OKLaboklab(29.72% 0.0508 -0.1169)
OKLCHoklch(29.72% 0.127 293.5)
XYZxyz(4.0200, 2.2561, 12.5331)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331765 #496517
analogous
#172265 #331765 #5A1765
triadic
#331765 #653317 #176533
tetradic
#331765 #651722 #496517 #17655A
square
#331765 #651722 #496517 #17655A
split-complementary
#331765 #655A17 #226517
monochromatic
#0D0619 #1A0C33 #331765 #4C2297 #652EC9

Accessibility & contrast

On white

14.47
#331765 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#331765 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331765
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331765#FFFFFF#000000##FFFFFF
##3317651.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A67
Deuteranopia (green-blind)
#002863
Tritanopia (blue-blind)
#242B3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331765;
/* rgb */ color: rgb(51, 23, 101);
/* oklch */ color: oklch(29.7% 0.127 293.5);
Tailwind
colors: {
  custom: {
    50: '#705792',
    500: '#331765',
    950: '#000000',
  },
}
SCSS
$custom: #331765;
$custom-light: #705792;
$custom-dark: #000000;
JSON
{
  "hex": "#331765",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 101
  },
  "hsl": {
    "h": 261.538,
    "s": 62.903,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29724,
    "c": 0.12744,
    "h": 293.5
  },
  "luminance": 0.02256
}

Semantic roles & 50–950 ramp

primary
#331765
secondary
#799B3C
accent
#E642AB
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331765

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

Preview Lab → · Contrast checker → · Palette generator →

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