#331DA1#331DA1

#331DA1 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.194 H 278.5°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#331DA1
RGBrgb(51, 29, 161)
HSLhsl(250, 69%, 37%)
HSVhsv(250, 82%, 63%)
CMYKcmyk(68.3%, 82%, 0%, 36.9%)
CIE-LABlab(24.18, 48.07, -66.52)
CIE-LCHlch(24.18, 82.07, 305.86°)
OKLaboklab(36.79% 0.0288 -0.1921)
OKLCHoklch(36.79% 0.194 278.5)
XYZxyz(8.2356, 4.1550, 34.0793)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331DA1 #8BA11D
analogous
#1D49A1 #331DA1 #751DA1
triadic
#331DA1 #A1331D #1DA133
tetradic
#331DA1 #A11D49 #8BA11D #1DA175
square
#331DA1 #A11D49 #8BA11D #1DA175
split-complementary
#331DA1 #A1751D #49A11D
monochromatic
#120A39 #23146D #331DA1 #4326D5 #6E58E1

Accessibility & contrast

On white

11.47
#331DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#331DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331DA1
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331DA1#FFFFFF#000000##FFFFFF
##331DA11.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00349F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #331da1;
/* rgb */ color: rgb(51, 29, 161);
/* oklch */ color: oklch(36.8% 0.194 278.5);
Tailwind
colors: {
  custom: {
    50: '#7c5ebe',
    500: '#331da1',
    950: '#000000',
  },
}
SCSS
$custom: #331da1;
$custom-light: #7c5ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#331da1",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 161
  },
  "hsl": {
    "h": 250,
    "s": 69.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36794,
    "c": 0.19427,
    "h": 278.5
  },
  "luminance": 0.04156
}

Semantic roles & 50–950 ramp

primary
#331DA1
secondary
#B2C455
accent
#EC3CCF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #331DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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