#331744#331744

#331744 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.085 H 310.7°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#331744
RGBrgb(51, 23, 68)
HSLhsl(277, 49%, 18%)
HSVhsv(277, 66%, 27%)
CMYKcmyk(25%, 66.2%, 0%, 73.3%)
CIE-LABlab(14.02, 23.42, -22.87)
CIE-LCHlch(14.02, 32.74, 315.68°)
OKLaboklab(26.88% 0.0552 -0.0643)
OKLCHoklch(26.88% 0.085 310.7)
XYZxyz(2.7148, 1.7340, 5.6594)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331744 #284417
analogous
#1C1744 #331744 #44173E
triadic
#331744 #443317 #174433
tetradic
#331744 #441C17 #284417 #173E44
square
#331744 #441C17 #284417 #173E44
split-complementary
#331744 #3E4417 #17441C
monochromatic
#110817 #110817 #331744 #552672 #78369F

Accessibility & contrast

On white

15.59
#331744 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#331744 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331744
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331744#FFFFFF#000000##FFFFFF
##3317441.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072245
Deuteranopia (green-blind)
#132443
Tritanopia (blue-blind)
#311F2A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331744;
/* rgb */ color: rgb(51, 23, 68);
/* oklch */ color: oklch(26.9% 0.085 310.7);
Tailwind
colors: {
  custom: {
    50: '#6c5578',
    500: '#331744',
    950: '#000000',
  },
}
SCSS
$custom: #331744;
$custom-light: #6c5578;
$custom-dark: #000000;
JSON
{
  "hex": "#331744",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 68
  },
  "hsl": {
    "h": 277.333,
    "s": 49.451,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26882,
    "c": 0.08476,
    "h": 310.7
  },
  "luminance": 0.01734
}

Semantic roles & 50–950 ramp

primary
#331744
secondary
#547B3C
accent
#D94F83
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #331744

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

Preview Lab → · Contrast checker → · Palette generator →

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