#331249#331249

#331249 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.099 H 308.6°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#331249
RGBrgb(51, 18, 73)
HSLhsl(276, 60%, 18%)
HSVhsv(276, 75%, 29%)
CMYKcmyk(30.1%, 75.3%, 0%, 71.4%)
CIE-LABlab(13.34, 27.68, -27.46)
CIE-LCHlch(13.34, 38.98, 315.23°)
OKLaboklab(26.51% 0.0621 -0.0777)
OKLCHoklch(26.51% 0.099 308.6)
XYZxyz(2.7839, 1.6175, 6.4676)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331249 #284912
analogous
#171249 #331249 #491243
triadic
#331249 #493312 #124933
tetradic
#331249 #491712 #284912 #124349
square
#331249 #491712 #284912 #124349
split-complementary
#331249 #434912 #124917
monochromatic
#110619 #110619 #331249 #551E7A #782AAB

Accessibility & contrast

On white

15.87
#331249 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331249
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331249#FFFFFF#000000##FFFFFF
##3312491.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214B
Deuteranopia (green-blind)
#072348
Tritanopia (blue-blind)
#301E2B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #331249;
/* rgb */ color: rgb(51, 18, 73);
/* oklch */ color: oklch(26.5% 0.099 308.6);
Tailwind
colors: {
  custom: {
    50: '#6d537c',
    500: '#331249',
    950: '#000000',
  },
}
SCSS
$custom: #331249;
$custom-light: #6d537c;
$custom-dark: #000000;
JSON
{
  "hex": "#331249",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 73
  },
  "hsl": {
    "h": 276,
    "s": 60.44,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26505,
    "c": 0.09944,
    "h": 308.6
  },
  "luminance": 0.01617
}

Semantic roles & 50–950 ramp

primary
#331249
secondary
#548235
accent
#E44484
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #331249

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

Preview Lab → · Contrast checker → · Palette generator →

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