#331F44#331F44

#331F44 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.3% C 0.069 H 307.5°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#331F44
RGBrgb(51, 31, 68)
HSLhsl(272, 37%, 19%)
HSVhsv(272, 54%, 27%)
CMYKcmyk(25%, 54.4%, 0%, 73.3%)
CIE-LABlab(16.01, 18.24, -19.72)
CIE-LCHlch(16.01, 26.86, 312.77°)
OKLaboklab(28.35% 0.0423 -0.0551)
OKLCHoklch(28.35% 0.069 307.5)
XYZxyz(2.8984, 2.1012, 5.7206)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F44 #30441F
analogous
#211F44 #331F44 #441F43
triadic
#331F44 #44331F #1F4433
tetradic
#331F44 #44211F #30441F #1F4344
square
#331F44 #44211F #30441F #1F4344
split-complementary
#331F44 #43441F #1F4421
monochromatic
#100A15 #130C1A #331F44 #53326E #724598

Accessibility & contrast

On white

14.79
#331F44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331F44
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F44#FFFFFF#000000##FFFFFF
##331F441.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152745
Deuteranopia (green-blind)
#1B2843
Tritanopia (blue-blind)
#31252E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331f44;
/* rgb */ color: rgb(51, 31, 68);
/* oklch */ color: oklch(28.3% 0.069 307.5);
Tailwind
colors: {
  custom: {
    50: '#6c5b78',
    500: '#331f44',
    950: '#000000',
  },
}
SCSS
$custom: #331f44;
$custom-light: #6c5b78;
$custom-dark: #000000;
JSON
{
  "hex": "#331f44",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 68
  },
  "hsl": {
    "h": 272.432,
    "s": 37.374,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28346,
    "c": 0.06948,
    "h": 307.5
  },
  "luminance": 0.02101
}

Semantic roles & 50–950 ramp

primary
#331F44
secondary
#5D7846
accent
#CD5A8F
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070409
muted
#7A797B

Preview Lab

Preview with #331F44

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

Preview Lab → · Contrast checker → · Palette generator →

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