#331644#331644

#331644 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.087 H 311.0°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#331644
RGBrgb(51, 22, 68)
HSLhsl(278, 51%, 18%)
HSVhsv(278, 68%, 27%)
CMYKcmyk(25%, 67.6%, 0%, 73.3%)
CIE-LABlab(13.80, 24.04, -23.24)
CIE-LCHlch(13.80, 33.43, 315.97°)
OKLaboklab(26.72% 0.0567 -0.0653)
OKLCHoklch(26.72% 0.087 311)
XYZxyz(2.6953, 1.6950, 5.6529)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331644 #274416
analogous
#1C1644 #331644 #44163E
triadic
#331644 #443316 #164433
tetradic
#331644 #441C16 #274416 #163E44
square
#331644 #441C16 #274416 #163E44
split-complementary
#331644 #3E4416 #16441C
monochromatic
#110717 #110717 #331644 #562572 #7834A0

Accessibility & contrast

On white

15.68
#331644 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331644
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331644#FFFFFF#000000##FFFFFF
##3316441.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052245
Deuteranopia (green-blind)
#122443
Tritanopia (blue-blind)
#311F2A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331644;
/* rgb */ color: rgb(51, 22, 68);
/* oklch */ color: oklch(26.7% 0.087 311.0);
Tailwind
colors: {
  custom: {
    50: '#6c5578',
    500: '#331644',
    950: '#000000',
  },
}
SCSS
$custom: #331644;
$custom-light: #6c5578;
$custom-dark: #000000;
JSON
{
  "hex": "#331644",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 68
  },
  "hsl": {
    "h": 277.826,
    "s": 51.111,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26717,
    "c": 0.08655,
    "h": 311
  },
  "luminance": 0.01695
}

Semantic roles & 50–950 ramp

primary
#331644
secondary
#527B3A
accent
#DB4D81
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #331644

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

Preview Lab → · Contrast checker → · Palette generator →

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