#331952#331952

#331952 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.100 H 301.2°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#331952
RGBrgb(51, 25, 82)
HSLhsl(267, 53%, 21%)
HSVhsv(267, 70%, 32%)
CMYKcmyk(37.8%, 69.5%, 0%, 67.8%)
CIE-LABlab(15.53, 26.14, -30.09)
CIE-LCHlch(15.53, 39.86, 310.98°)
OKLaboklab(28.31% 0.0518 -0.0855)
OKLCHoklch(28.31% 0.1 301.2)
XYZxyz(3.2355, 2.0082, 8.1982)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331952 #385219
analogous
#191B52 #331952 #4F1952
triadic
#331952 #523319 #195233
tetradic
#331952 #52191B #385219 #19524F
square
#331952 #52191B #385219 #19524F
split-complementary
#331952 #524F19 #1B5219
monochromatic
#0F0717 #160B23 #331952 #502781 #6D36B0

Accessibility & contrast

On white

14.98
#331952 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#331952 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331952
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331952#FFFFFF#000000##FFFFFF
##3319521.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002654
Deuteranopia (green-blind)
#042651
Tritanopia (blue-blind)
#2D2533
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331952;
/* rgb */ color: rgb(51, 25, 82);
/* oklch */ color: oklch(28.3% 0.100 301.2);
Tailwind
colors: {
  custom: {
    50: '#6e5783',
    500: '#331952',
    950: '#000000',
  },
}
SCSS
$custom: #331952;
$custom-light: #6e5783;
$custom-dark: #000000;
JSON
{
  "hex": "#331952",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 82
  },
  "hsl": {
    "h": 267.368,
    "s": 53.271,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28313,
    "c": 0.09996,
    "h": 301.2
  },
  "luminance": 0.02008
}

Semantic roles & 50–950 ramp

primary
#331952
secondary
#67883E
accent
#DD4B9A
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #331952

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

Preview Lab → · Contrast checker → · Palette generator →

#331952 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva