#331D70#331D70

#331D70 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.6% C 0.134 H 288.4°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#331D70
RGBrgb(51, 29, 112)
HSLhsl(256, 59%, 28%)
HSVhsv(256, 74%, 44%)
CMYKcmyk(54.5%, 74.1%, 0%, 56.1%)
CIE-LABlab(19.02, 32.93, -44.29)
CIE-LCHlch(19.02, 55.19, 306.63°)
OKLaboklab(31.64% 0.0423 -0.1272)
OKLCHoklch(31.64% 0.134 288.4)
XYZxyz(4.7284, 2.7522, 15.6082)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D70 #5A701D
analogous
#1D3070 #331D70 #5D1D70
triadic
#331D70 #70331D #1D7033
tetradic
#331D70 #701D30 #5A701D #1D705D
square
#331D70 #701D30 #5A701D #1D705D
split-complementary
#331D70 #705D1D #30701D
monochromatic
#0B0618 #1D103F #331D70 #492AA1 #623BCC

Accessibility & contrast

On white

13.54
#331D70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#331D70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331D70
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D70#FFFFFF#000000##FFFFFF
##331D701.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#1C3344
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #331d70;
/* rgb */ color: rgb(51, 29, 112);
/* oklch */ color: oklch(31.6% 0.134 288.4);
Tailwind
colors: {
  custom: {
    50: '#725b9a',
    500: '#331d70',
    950: '#000000',
  },
}
SCSS
$custom: #331d70;
$custom-light: #725b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#331d70",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 112
  },
  "hsl": {
    "h": 255.904,
    "s": 58.865,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31638,
    "c": 0.13408,
    "h": 288.4
  },
  "luminance": 0.02752
}

Semantic roles & 50–950 ramp

primary
#331D70
secondary
#8BA444
accent
#E246B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #331D70

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

Preview Lab → · Contrast checker → · Palette generator →

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