#331DA0#331DA0

#331DA0 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.193 H 278.7°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#331DA0
RGBrgb(51, 29, 160)
HSLhsl(250, 69%, 37%)
HSVhsv(250, 82%, 63%)
CMYKcmyk(68.1%, 81.9%, 0%, 37.3%)
CIE-LABlab(24.06, 47.77, -66.10)
CIE-LCHlch(24.06, 81.56, 305.86°)
OKLaboklab(36.68% 0.0291 -0.1909)
OKLCHoklch(36.68% 0.193 278.7)
XYZxyz(8.1477, 4.1199, 33.6167)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331DA0 #8AA01D
analogous
#1D49A0 #331DA0 #741DA0
triadic
#331DA0 #A0331D #1DA033
tetradic
#331DA0 #A01D49 #8AA01D #1DA074
square
#331DA0 #A01D49 #8AA01D #1DA074
split-complementary
#331DA0 #A0741D #49A01D
monochromatic
#120A38 #22146C #331DA0 #4426D4 #6E57E1

Accessibility & contrast

On white

11.51
#331DA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#331DA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331DA0
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331DA0#FFFFFF#000000##FFFFFF
##331DA01.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #331da0;
/* rgb */ color: rgb(51, 29, 160);
/* oklch */ color: oklch(36.7% 0.193 278.7);
Tailwind
colors: {
  custom: {
    50: '#7b5ebd',
    500: '#331da0',
    950: '#000000',
  },
}
SCSS
$custom: #331da0;
$custom-light: #7b5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#331da0",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 160
  },
  "hsl": {
    "h": 250.076,
    "s": 69.312,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36682,
    "c": 0.19311,
    "h": 278.7
  },
  "luminance": 0.04121
}

Semantic roles & 50–950 ramp

primary
#331DA0
secondary
#B1C455
accent
#EC3CCE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #331DA0

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

Preview Lab → · Contrast checker → · Palette generator →

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