#331B46#331B46

#331B46 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.080 H 307.8°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#331B46
RGBrgb(51, 27, 70)
HSLhsl(273, 44%, 19%)
HSVhsv(273, 61%, 27%)
CMYKcmyk(27.1%, 61.4%, 0%, 72.5%)
CIE-LABlab(15.12, 21.44, -22.52)
CIE-LCHlch(15.12, 31.10, 313.59°)
OKLaboklab(27.73% 0.0491 -0.0633)
OKLCHoklch(27.73% 0.08 307.8)
XYZxyz(2.8624, 1.9299, 6.0149)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B46 #2E461B
analogous
#1E1B46 #331B46 #461B44
triadic
#331B46 #46331B #1B4633
tetradic
#331B46 #461E1B #2E461B #1B4446
square
#331B46 #461E1B #2E461B #1B4446
split-complementary
#331B46 #44461B #1B461E
monochromatic
#100916 #130A1A #331B46 #532C72 #733D9E

Accessibility & contrast

On white

15.15
#331B46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#331B46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331B46
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B46#FFFFFF#000000##FFFFFF
##331B461.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2547
Deuteranopia (green-blind)
#152645
Tritanopia (blue-blind)
#30232D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331b46;
/* rgb */ color: rgb(51, 27, 70);
/* oklch */ color: oklch(27.7% 0.080 307.8);
Tailwind
colors: {
  custom: {
    50: '#6c587a',
    500: '#331b46',
    950: '#000000',
  },
}
SCSS
$custom: #331b46;
$custom-light: #6c587a;
$custom-dark: #000000;
JSON
{
  "hex": "#331b46",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 70
  },
  "hsl": {
    "h": 273.488,
    "s": 44.33,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27726,
    "c": 0.08008,
    "h": 307.8
  },
  "luminance": 0.0193
}

Semantic roles & 50–950 ramp

primary
#331B46
secondary
#5B7C41
accent
#D4548C
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #331B46

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

Preview Lab → · Contrast checker → · Palette generator →

#331B46 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva