#331348#331348

#331348 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.097 H 309.0°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#331348
RGBrgb(51, 19, 72)
HSLhsl(276, 58%, 18%)
HSVhsv(276, 74%, 28%)
CMYKcmyk(29.2%, 73.6%, 0%, 71.8%)
CIE-LABlab(13.46, 26.86, -26.57)
CIE-LCHlch(13.46, 37.78, 315.31°)
OKLaboklab(26.57% 0.0608 -0.0751)
OKLCHoklch(26.57% 0.097 309)
XYZxyz(2.7676, 1.6375, 6.2999)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331348 #284813
analogous
#181348 #331348 #481342
triadic
#331348 #483313 #134833
tetradic
#331348 #481813 #284813 #134248
square
#331348 #481813 #284813 #134248
split-complementary
#331348 #424813 #134818
monochromatic
#110618 #110618 #331348 #552078 #782DA9

Accessibility & contrast

On white

15.82
#331348 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#331348 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331348
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331348#FFFFFF#000000##FFFFFF
##3313481.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214A
Deuteranopia (green-blind)
#0A2347
Tritanopia (blue-blind)
#301E2B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #331348;
/* rgb */ color: rgb(51, 19, 72);
/* oklch */ color: oklch(26.6% 0.097 309.0);
Tailwind
colors: {
  custom: {
    50: '#6d537b',
    500: '#331348',
    950: '#000000',
  },
}
SCSS
$custom: #331348;
$custom-light: #6d537b;
$custom-dark: #000000;
JSON
{
  "hex": "#331348",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 72
  },
  "hsl": {
    "h": 276.226,
    "s": 58.242,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26566,
    "c": 0.09665,
    "h": 309
  },
  "luminance": 0.01637
}

Semantic roles & 50–950 ramp

primary
#331348
secondary
#548136
accent
#E14684
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #331348

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

Preview Lab → · Contrast checker → · Palette generator →

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