#331146#331146

#331146 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.097 H 310.9°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#331146
RGBrgb(51, 17, 70)
HSLhsl(278, 61%, 17%)
HSVhsv(278, 76%, 27%)
CMYKcmyk(27.1%, 75.7%, 0%, 72.5%)
CIE-LABlab(12.90, 27.43, -26.07)
CIE-LCHlch(12.90, 37.84, 316.46°)
OKLaboklab(26.12% 0.0637 -0.0736)
OKLCHoklch(26.12% 0.097 310.9)
XYZxyz(2.6710, 1.5470, 5.9511)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331146 #244611
analogous
#191146 #331146 #46113F
triadic
#331146 #463311 #114633
tetradic
#331146 #461911 #244611 #113F46
square
#331146 #461911 #244611 #113F46
split-complementary
#331146 #3F4611 #114619
monochromatic
#120619 #120619 #331146 #571D77 #7B29A8

Accessibility & contrast

On white

16.04
#331146 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#331146 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331146
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331146#FFFFFF#000000##FFFFFF
##3311461.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002048
Deuteranopia (green-blind)
#0A2245
Tritanopia (blue-blind)
#311C29
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #331146;
/* rgb */ color: rgb(51, 17, 70);
/* oklch */ color: oklch(26.1% 0.097 310.9);
Tailwind
colors: {
  custom: {
    50: '#6d527a',
    500: '#331146',
    950: '#000000',
  },
}
SCSS
$custom: #331146;
$custom-light: #6d527a;
$custom-dark: #000000;
JSON
{
  "hex": "#331146",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 70
  },
  "hsl": {
    "h": 278.491,
    "s": 60.92,
    "l": 17.059
  },
  "oklch": {
    "l": 0.26119,
    "c": 0.09735,
    "h": 310.9
  },
  "luminance": 0.01547
}

Semantic roles & 50–950 ramp

primary
#331146
secondary
#4F8033
accent
#E4447D
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #331146

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

Preview Lab → · Contrast checker → · Palette generator →

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