#331762#331762

#331762 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.124 H 294.6°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#331762
RGBrgb(51, 23, 98)
HSLhsl(262, 62%, 24%)
HSVhsv(262, 77%, 38%)
CMYKcmyk(48%, 76.5%, 0%, 61.6%)
CIE-LABlab(16.50, 32.03, -39.25)
CIE-LCHlch(16.50, 50.66, 309.21°)
OKLaboklab(29.44% 0.0515 -0.1124)
OKLCHoklch(29.44% 0.124 294.6)
XYZxyz(3.8756, 2.1983, 11.7730)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331762 #466217
analogous
#172062 #331762 #581762
triadic
#331762 #623317 #176233
tetradic
#331762 #621720 #466217 #176258
square
#331762 #621720 #466217 #176258
split-complementary
#331762 #625817 #206217
monochromatic
#0D0619 #190B30 #331762 #4D2394 #672EC5

Accessibility & contrast

On white

14.59
#331762 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#331762 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331762
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331762#FFFFFF#000000##FFFFFF
##3317621.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002861
Tritanopia (blue-blind)
#262A3B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331762;
/* rgb */ color: rgb(51, 23, 98);
/* oklch */ color: oklch(29.4% 0.124 294.6);
Tailwind
colors: {
  custom: {
    50: '#70578f',
    500: '#331762',
    950: '#000000',
  },
}
SCSS
$custom: #331762;
$custom-light: #70578f;
$custom-dark: #000000;
JSON
{
  "hex": "#331762",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 98
  },
  "hsl": {
    "h": 262.4,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29438,
    "c": 0.12366,
    "h": 294.6
  },
  "luminance": 0.02198
}

Semantic roles & 50–950 ramp

primary
#331762
secondary
#76993C
accent
#E543A8
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331762

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

Preview Lab → · Contrast checker → · Palette generator →

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