#331F49#331F49

#331F49 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.7% C 0.077 H 304.0°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#331F49
RGBrgb(51, 31, 73)
HSLhsl(269, 40%, 20%)
HSVhsv(269, 58%, 29%)
CMYKcmyk(30.1%, 57.5%, 0%, 71.4%)
CIE-LABlab(16.33, 19.67, -22.66)
CIE-LCHlch(16.33, 30.01, 310.96°)
OKLaboklab(28.69% 0.0429 -0.0637)
OKLCHoklch(28.69% 0.077 304)
XYZxyz(3.0576, 2.1648, 6.5588)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F49 #35491F
analogous
#1F2049 #331F49 #481F49
triadic
#331F49 #49331F #1F4933
tetradic
#331F49 #491F20 #35491F #1F4948
square
#331F49 #491F20 #35491F #1F4948
split-complementary
#331F49 #49481F #20491F
monochromatic
#0F0915 #150D1E #331F49 #513174 #6F439F

Accessibility & contrast

On white

14.65
#331F49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#331F49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F49
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F49#FFFFFF#000000##FFFFFF
##331F491.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11284A
Deuteranopia (green-blind)
#172848
Tritanopia (blue-blind)
#2F2730
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331f49;
/* rgb */ color: rgb(51, 31, 73);
/* oklch */ color: oklch(28.7% 0.077 304.0);
Tailwind
colors: {
  custom: {
    50: '#6c5b7c',
    500: '#331f49',
    950: '#000000',
  },
}
SCSS
$custom: #331f49;
$custom-light: #6c5b7c;
$custom-dark: #000000;
JSON
{
  "hex": "#331f49",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 73
  },
  "hsl": {
    "h": 268.571,
    "s": 40.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28688,
    "c": 0.07681,
    "h": 304
  },
  "luminance": 0.02165
}

Semantic roles & 50–950 ramp

primary
#331F49
secondary
#637E46
accent
#D05897
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070409
muted
#7A797B

Preview Lab

Preview with #331F49

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

Preview Lab → · Contrast checker → · Palette generator →

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