#331767#331767

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

Color values

HEX#331767
RGBrgb(51, 23, 103)
HSLhsl(261, 63%, 25%)
HSVhsv(261, 78%, 40%)
CMYKcmyk(50.5%, 77.7%, 0%, 59.6%)
CIE-LABlab(16.97, 33.52, -41.78)
CIE-LCHlch(16.97, 53.57, 308.74°)
OKLaboklab(29.92% 0.0503 -0.1198)
OKLCHoklch(29.92% 0.13 292.8)
XYZxyz(4.1191, 2.2957, 13.0554)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331767 #4B6717
analogous
#172367 #331767 #5B1767
triadic
#331767 #673317 #176733
tetradic
#331767 #671723 #4B6717 #17675B
square
#331767 #671723 #4B6717 #17675B
split-complementary
#331767 #675B17 #236717
monochromatic
#0C0619 #1A0C35 #331767 #4C2299 #652DCB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##331767#FFFFFF#000000##FFFFFF
##3317671.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)
#002B69
Deuteranopia (green-blind)
#002865
Tritanopia (blue-blind)
#232C3D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331767;
/* rgb */ color: rgb(51, 23, 103);
/* oklch */ color: oklch(29.9% 0.130 292.8);
Tailwind
colors: {
  custom: {
    50: '#715793',
    500: '#331767',
    950: '#000000',
  },
}
SCSS
$custom: #331767;
$custom-light: #715793;
$custom-dark: #000000;
JSON
{
  "hex": "#331767",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 261,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29918,
    "c": 0.12996,
    "h": 292.8
  },
  "luminance": 0.02296
}

Semantic roles & 50–950 ramp

primary
#331767
secondary
#7B9D3D
accent
#E741AD
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331767

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

Preview Lab → · Contrast checker → · Palette generator →

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