#331E94#331E94

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

Color values

HEX#331E94
RGBrgb(51, 30, 148)
HSLhsl(251, 66%, 35%)
HSVhsv(251, 80%, 58%)
CMYKcmyk(65.5%, 79.7%, 0%, 42%)
CIE-LABlab(22.90, 43.64, -60.67)
CIE-LCHlch(22.90, 74.73, 305.73°)
OKLaboklab(35.48% 0.0321 -0.1751)
OKLCHoklch(35.48% 0.178 280.4)
XYZxyz(7.1731, 3.7699, 28.3609)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E94 #7F941E
analogous
#1E4494 #331E94 #6E1E94
triadic
#331E94 #94331E #1E9433
tetradic
#331E94 #941E44 #7F941E #1E946E
square
#331E94 #941E44 #7F941E #1E946E
split-complementary
#331E94 #946E1E #44941E
monochromatic
#10092E #211461 #331E94 #4528C7 #6951DC

Accessibility & contrast

On white

11.97
#331E94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331E94
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E94#FFFFFF#000000##FFFFFF
##331E941.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B97
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #331e94;
/* rgb */ color: rgb(51, 30, 148);
/* oklch */ color: oklch(35.5% 0.178 280.4);
Tailwind
colors: {
  custom: {
    50: '#795eb5',
    500: '#331e94',
    950: '#000000',
  },
}
SCSS
$custom: #331e94;
$custom-light: #795eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#331e94",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 148
  },
  "hsl": {
    "h": 250.678,
    "s": 66.292,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35477,
    "c": 0.17804,
    "h": 280.4
  },
  "luminance": 0.0377
}

Semantic roles & 50–950 ramp

primary
#331E94
secondary
#ABBF4F
accent
#E93FCB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #331E94

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

Preview Lab → · Contrast checker → · Palette generator →

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