#331C50#331C50

#331C50 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.092 H 301.2°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#331C50
RGBrgb(51, 28, 80)
HSLhsl(267, 48%, 21%)
HSVhsv(267, 65%, 31%)
CMYKcmyk(36.3%, 65%, 0%, 68.6%)
CIE-LABlab(16.07, 23.68, -27.86)
CIE-LCHlch(16.07, 36.56, 310.37°)
OKLaboklab(28.66% 0.0477 -0.0789)
OKLCHoklch(28.66% 0.092 301.2)
XYZxyz(3.2281, 2.1135, 7.8257)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C50 #39501C
analogous
#1C1F50 #331C50 #4D1C50
triadic
#331C50 #50331C #1C5033
tetradic
#331C50 #501C1F #39501C #1C504D
square
#331C50 #501C1F #39501C #1C504D
split-complementary
#331C50 #504D1C #1F501C
monochromatic
#0E0817 #160C23 #331C50 #502C7D #6D3CAB

Accessibility & contrast

On white

14.76
#331C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#331C50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C50
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C50#FFFFFF#000000##FFFFFF
##331C501.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032852
Deuteranopia (green-blind)
#0D284F
Tritanopia (blue-blind)
#2D2733
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331c50;
/* rgb */ color: rgb(51, 28, 80);
/* oklch */ color: oklch(28.7% 0.092 301.2);
Tailwind
colors: {
  custom: {
    50: '#6d5981',
    500: '#331c50',
    950: '#000000',
  },
}
SCSS
$custom: #331c50;
$custom-light: #6d5981;
$custom-dark: #000000;
JSON
{
  "hex": "#331c50",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 80
  },
  "hsl": {
    "h": 266.538,
    "s": 48.148,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28657,
    "c": 0.09225,
    "h": 301.2
  },
  "luminance": 0.02114
}

Semantic roles & 50–950 ramp

primary
#331C50
secondary
#688642
accent
#D8509C
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #331C50

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

Preview Lab → · Contrast checker → · Palette generator →

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