#331372#331372

#331372 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.148 H 289.9°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#331372
RGBrgb(51, 19, 114)
HSLhsl(260, 71%, 26%)
HSVhsv(260, 83%, 45%)
CMYKcmyk(55.3%, 83.3%, 0%, 55.3%)
CIE-LABlab(17.39, 38.76, -48.27)
CIE-LCHlch(17.39, 61.90, 308.76°)
OKLaboklab(30.55% 0.0503 -0.1388)
OKLCHoklch(30.55% 0.148 289.9)
XYZxyz(4.6345, 2.3842, 16.1323)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331372 #527213
analogous
#132272 #331372 #621372
triadic
#331372 #723313 #137233
tetradic
#331372 #721322 #527213 #137262
square
#331372 #721322 #527213 #137262
split-complementary
#331372 #726213 #227213
monochromatic
#0C041A #1C0A3E #331372 #4A1CA6 #6225DB

Accessibility & contrast

On white

14.22
#331372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#331372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331372
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331372#FFFFFF#000000##FFFFFF
##3313721.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#1B2F43
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331372;
/* rgb */ color: rgb(51, 19, 114);
/* oklch */ color: oklch(30.6% 0.148 289.9);
Tailwind
colors: {
  custom: {
    50: '#73569c',
    500: '#331372',
    950: '#000000',
  },
}
SCSS
$custom: #331372;
$custom-light: #73569c;
$custom-dark: #000000;
JSON
{
  "hex": "#331372",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 260.211,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3055,
    "c": 0.14761,
    "h": 289.9
  },
  "luminance": 0.02384
}

Semantic roles & 50–950 ramp

primary
#331372
secondary
#83A938
accent
#EE3AB1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331372

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

Preview Lab → · Contrast checker → · Palette generator →

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