#331645#331645

#331645 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.088 H 310.2°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#331645
RGBrgb(51, 22, 69)
HSLhsl(277, 52%, 18%)
HSVhsv(277, 68%, 27%)
CMYKcmyk(26.1%, 68.1%, 0%, 72.9%)
CIE-LABlab(13.87, 24.30, -23.82)
CIE-LCHlch(13.87, 34.03, 315.58°)
OKLaboklab(26.79% 0.0567 -0.0671)
OKLCHoklch(26.79% 0.088 310.2)
XYZxyz(2.7261, 1.7074, 5.8150)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331645 #284516
analogous
#1B1645 #331645 #45163F
triadic
#331645 #453316 #164533
tetradic
#331645 #451B16 #284516 #163F45
square
#331645 #451B16 #284516 #163F45
split-complementary
#331645 #3F4516 #16451B
monochromatic
#110717 #110717 #331645 #552573 #7834A2

Accessibility & contrast

On white

15.66
#331645 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#331645 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331645
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331645#FFFFFF#000000##FFFFFF
##3316451.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042246
Deuteranopia (green-blind)
#112444
Tritanopia (blue-blind)
#311F2B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331645;
/* rgb */ color: rgb(51, 22, 69);
/* oklch */ color: oklch(26.8% 0.088 310.2);
Tailwind
colors: {
  custom: {
    50: '#6d5579',
    500: '#331645',
    950: '#000000',
  },
}
SCSS
$custom: #331645;
$custom-light: #6d5579;
$custom-dark: #000000;
JSON
{
  "hex": "#331645",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 69
  },
  "hsl": {
    "h": 277.021,
    "s": 51.648,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26793,
    "c": 0.08784,
    "h": 310.2
  },
  "luminance": 0.01707
}

Semantic roles & 50–950 ramp

primary
#331645
secondary
#547C3A
accent
#DB4D83
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #331645

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

Preview Lab → · Contrast checker → · Palette generator →

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