#331B60#331B60

#331B60 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.8% C 0.116 H 294.3°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#331B60
RGBrgb(51, 27, 96)
HSLhsl(261, 56%, 24%)
HSVhsv(261, 72%, 38%)
CMYKcmyk(46.9%, 71.9%, 0%, 62.4%)
CIE-LABlab(17.14, 29.13, -36.88)
CIE-LCHlch(17.14, 46.99, 308.31°)
OKLaboklab(29.84% 0.0475 -0.1054)
OKLCHoklch(29.84% 0.116 294.3)
XYZxyz(3.8679, 2.3321, 11.3104)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B60 #48601B
analogous
#1B2560 #331B60 #561B60
triadic
#331B60 #60331B #1B6033
tetradic
#331B60 #601B25 #48601B #1B6056
square
#331B60 #601B25 #48601B #1B6056
split-complementary
#331B60 #60561B #25601B
monochromatic
#0D0718 #1A0E30 #331B60 #4C2890 #6636C0

Accessibility & contrast

On white

14.32
#331B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#331B60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331B60
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B60#FFFFFF#000000##FFFFFF
##331B601.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B62
Deuteranopia (green-blind)
#00295F
Tritanopia (blue-blind)
#262C3B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331b60;
/* rgb */ color: rgb(51, 27, 96);
/* oklch */ color: oklch(29.8% 0.116 294.3);
Tailwind
colors: {
  custom: {
    50: '#6f598e',
    500: '#331b60',
    950: '#000000',
  },
}
SCSS
$custom: #331b60;
$custom-light: #6f598e;
$custom-dark: #000000;
JSON
{
  "hex": "#331b60",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 96
  },
  "hsl": {
    "h": 260.87,
    "s": 56.098,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29842,
    "c": 0.11565,
    "h": 294.3
  },
  "luminance": 0.02332
}

Semantic roles & 50–950 ramp

primary
#331B60
secondary
#789641
accent
#DF48AB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331B60

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

Preview Lab → · Contrast checker → · Palette generator →

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