#331049#331049

#331049 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.102 H 309.1°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#331049
RGBrgb(51, 16, 73)
HSLhsl(277, 64%, 17%)
HSVhsv(277, 78%, 29%)
CMYKcmyk(30.1%, 78.1%, 0%, 71.4%)
CIE-LABlab(12.96, 28.74, -28.07)
CIE-LCHlch(12.96, 40.17, 315.68°)
OKLaboklab(26.23% 0.0646 -0.0795)
OKLCHoklch(26.23% 0.102 309.1)
XYZxyz(2.7529, 1.5555, 6.4573)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331049 #264910
analogous
#161049 #331049 #491043
triadic
#331049 #493310 #104933
tetradic
#331049 #491610 #264910 #104349
square
#331049 #491610 #264910 #104349
split-complementary
#331049 #434910 #104916
monochromatic
#120619 #120619 #331049 #561B7B #7926AD

Accessibility & contrast

On white

16.02
#331049 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331049
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331049#FFFFFF#000000##FFFFFF
##3310491.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204B
Deuteranopia (green-blind)
#052248
Tritanopia (blue-blind)
#301D2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #331049;
/* rgb */ color: rgb(51, 16, 73);
/* oklch */ color: oklch(26.2% 0.102 309.1);
Tailwind
colors: {
  custom: {
    50: '#6d527c',
    500: '#331049',
    950: '#000000',
  },
}
SCSS
$custom: #331049;
$custom-light: #6d527c;
$custom-dark: #000000;
JSON
{
  "hex": "#331049",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 73
  },
  "hsl": {
    "h": 276.842,
    "s": 64.045,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26234,
    "c": 0.10241,
    "h": 309.1
  },
  "luminance": 0.01555
}

Semantic roles & 50–950 ramp

primary
#331049
secondary
#518332
accent
#E74181
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #331049

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

Preview Lab → · Contrast checker → · Palette generator →

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