#331345#331345

#331345 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.093 H 311.1°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#331345
RGBrgb(51, 19, 69)
HSLhsl(278, 57%, 17%)
HSVhsv(278, 72%, 27%)
CMYKcmyk(26.1%, 72.5%, 0%, 72.9%)
CIE-LABlab(13.23, 26.06, -24.85)
CIE-LCHlch(13.23, 36.01, 316.36°)
OKLaboklab(26.33% 0.0611 -0.0701)
OKLCHoklch(26.33% 0.093 311.1)
XYZxyz(2.6721, 1.5993, 5.7970)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331345 #254513
analogous
#1A1345 #331345 #45133E
triadic
#331345 #453313 #134533
tetradic
#331345 #451A13 #254513 #133E45
square
#331345 #451A13 #254513 #133E45
split-complementary
#331345 #3E4513 #13451A
monochromatic
#120718 #120718 #331345 #562075 #7A2DA5

Accessibility & contrast

On white

15.91
#331345 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#331345 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331345
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331345#FFFFFF#000000##FFFFFF
##3313451.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002047
Deuteranopia (green-blind)
#0D2344
Tritanopia (blue-blind)
#311D2A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #331345;
/* rgb */ color: rgb(51, 19, 69);
/* oklch */ color: oklch(26.3% 0.093 311.1);
Tailwind
colors: {
  custom: {
    50: '#6d5379',
    500: '#331345',
    950: '#000000',
  },
}
SCSS
$custom: #331345;
$custom-light: #6d5379;
$custom-dark: #000000;
JSON
{
  "hex": "#331345",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 69
  },
  "hsl": {
    "h": 278.4,
    "s": 56.818,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26326,
    "c": 0.09295,
    "h": 311.1
  },
  "luminance": 0.01599
}

Semantic roles & 50–950 ramp

primary
#331345
secondary
#507E36
accent
#E0487F
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #331345

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

Preview Lab → · Contrast checker → · Palette generator →

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