#331F92#331F92

#331F92 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.175 H 280.6°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#331F92
RGBrgb(51, 31, 146)
HSLhsl(250, 65%, 35%)
HSVhsv(250, 79%, 57%)
CMYKcmyk(65.1%, 78.8%, 0%, 42.7%)
CIE-LABlab(22.86, 42.51, -59.49)
CIE-LCHlch(22.86, 73.12, 305.55°)
OKLaboklab(35.39% 0.0321 -0.1717)
OKLCHoklch(35.39% 0.175 280.6)
XYZxyz(7.0419, 3.7586, 27.5429)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F92 #7E921F
analogous
#1F4492 #331F92 #6D1F92
triadic
#331F92 #92331F #1F9233
tetradic
#331F92 #921F44 #7E921F #1F926D
square
#331F92 #921F44 #7E921F #1F926D
split-complementary
#331F92 #926D1F #44921F
monochromatic
#100A2D #211460 #331F92 #452AC4 #6951DA

Accessibility & contrast

On white

11.99
#331F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#331F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F92
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F92#FFFFFF#000000##FFFFFF
##331F921.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331f92;
/* rgb */ color: rgb(51, 31, 146);
/* oklch */ color: oklch(35.4% 0.175 280.6);
Tailwind
colors: {
  custom: {
    50: '#785eb3',
    500: '#331f92',
    950: '#000000',
  },
}
SCSS
$custom: #331f92;
$custom-light: #785eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#331f92",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 250.435,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35385,
    "c": 0.17468,
    "h": 280.6
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #331F92

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

Preview Lab → · Contrast checker → · Palette generator →

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