#331F43#331F43

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

Color values

HEX#331F43
RGBrgb(51, 31, 67)
HSLhsl(273, 37%, 19%)
HSVhsv(273, 54%, 26%)
CMYKcmyk(23.9%, 53.7%, 0%, 73.7%)
CIE-LABlab(15.95, 17.96, -19.12)
CIE-LCHlch(15.95, 26.23, 313.20°)
OKLaboklab(28.28% 0.0421 -0.0534)
OKLCHoklch(28.28% 0.068 308.3)
XYZxyz(2.8681, 2.0891, 5.5612)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F43 #2F431F
analogous
#211F43 #331F43 #431F41
triadic
#331F43 #43331F #1F4333
tetradic
#331F43 #43211F #2F431F #1F4143
square
#331F43 #43211F #2F431F #1F4143
split-complementary
#331F43 #41431F #1F4321
monochromatic
#100A15 #130C19 #331F43 #53326D #734697

Accessibility & contrast

On white

14.81
#331F43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331F43
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F43#FFFFFF#000000##FFFFFF
##331F431.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162744
Deuteranopia (green-blind)
#1B2842
Tritanopia (blue-blind)
#31252D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331f43;
/* rgb */ color: rgb(51, 31, 67);
/* oklch */ color: oklch(28.3% 0.068 308.3);
Tailwind
colors: {
  custom: {
    50: '#6c5b77',
    500: '#331f43',
    950: '#000000',
  },
}
SCSS
$custom: #331f43;
$custom-light: #6c5b77;
$custom-dark: #000000;
JSON
{
  "hex": "#331f43",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 67
  },
  "hsl": {
    "h": 273.333,
    "s": 36.735,
    "l": 19.216
  },
  "oklch": {
    "l": 0.2828,
    "c": 0.06802,
    "h": 308.3
  },
  "luminance": 0.02089
}

Semantic roles & 50–950 ramp

primary
#331F43
secondary
#5C7746
accent
#CD5B8E
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070408
muted
#7A797B

Preview Lab

Preview with #331F43

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

Preview Lab → · Contrast checker → · Palette generator →

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