#331B50#331B50

#331B50 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.5% C 0.094 H 301.6°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#331B50
RGBrgb(51, 27, 80)
HSLhsl(267, 50%, 21%)
HSVhsv(267, 66%, 31%)
CMYKcmyk(36.3%, 66.3%, 0%, 68.6%)
CIE-LABlab(15.83, 24.32, -28.24)
CIE-LCHlch(15.83, 37.27, 310.73°)
OKLaboklab(28.48% 0.0492 -0.0801)
OKLCHoklch(28.48% 0.094 301.6)
XYZxyz(3.2048, 2.0668, 7.8180)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B50 #38501B
analogous
#1B1D50 #331B50 #4D1B50
triadic
#331B50 #50331B #1B5033
tetradic
#331B50 #501B1D #38501B #1B504D
square
#331B50 #501B1D #38501B #1B504D
split-complementary
#331B50 #504D1B #1D501B
monochromatic
#0F0817 #160C22 #331B50 #502A7E #6D3AAC

Accessibility & contrast

On white

14.86
#331B50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#331B50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331B50
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B50#FFFFFF#000000##FFFFFF
##331B501.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002752
Deuteranopia (green-blind)
#0B274F
Tritanopia (blue-blind)
#2D2632
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331b50;
/* rgb */ color: rgb(51, 27, 80);
/* oklch */ color: oklch(28.5% 0.094 301.6);
Tailwind
colors: {
  custom: {
    50: '#6d5881',
    500: '#331b50',
    950: '#000000',
  },
}
SCSS
$custom: #331b50;
$custom-light: #6d5881;
$custom-dark: #000000;
JSON
{
  "hex": "#331b50",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 80
  },
  "hsl": {
    "h": 267.17,
    "s": 49.533,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28484,
    "c": 0.09395,
    "h": 301.6
  },
  "luminance": 0.02067
}

Semantic roles & 50–950 ramp

primary
#331B50
secondary
#678641
accent
#D94F9A
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #331B50

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

Preview Lab → · Contrast checker → · Palette generator →

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