#331F93#331F93

#331F93 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.176 H 280.4°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#331F93
RGBrgb(51, 31, 147)
HSLhsl(250, 65%, 35%)
HSVhsv(250, 79%, 58%)
CMYKcmyk(65.3%, 78.9%, 0%, 42.4%)
CIE-LABlab(22.96, 42.83, -59.93)
CIE-LCHlch(22.96, 73.66, 305.55°)
OKLaboklab(35.49% 0.0318 -0.173)
OKLCHoklch(35.49% 0.176 280.4)
XYZxyz(7.1200, 3.7898, 27.9544)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F93 #7F931F
analogous
#1F4593 #331F93 #6D1F93
triadic
#331F93 #93331F #1F9333
tetradic
#331F93 #931F45 #7F931F #1F936D
square
#331F93 #931F45 #7F931F #1F936D
split-complementary
#331F93 #936D1F #45931F
monochromatic
#100A2E #211460 #331F93 #452AC6 #6952DA

Accessibility & contrast

On white

11.95
#331F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#331F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F93
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F93#FFFFFF#000000##FFFFFF
##331F931.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B96
Deuteranopia (green-blind)
#003291
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #331f93;
/* rgb */ color: rgb(51, 31, 147);
/* oklch */ color: oklch(35.5% 0.176 280.4);
Tailwind
colors: {
  custom: {
    50: '#785eb4',
    500: '#331f93',
    950: '#000000',
  },
}
SCSS
$custom: #331f93;
$custom-light: #785eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#331f93",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 250.345,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35492,
    "c": 0.1759,
    "h": 280.4
  },
  "luminance": 0.0379
}

Semantic roles & 50–950 ramp

primary
#331F93
secondary
#ABBE50
accent
#E840CB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #331F93

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

Preview Lab → · Contrast checker → · Palette generator →

#331F93 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva