#331A48#331A48

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

Color values

HEX#331A48
RGBrgb(51, 26, 72)
HSLhsl(273, 47%, 19%)
HSVhsv(273, 64%, 28%)
CMYKcmyk(29.2%, 63.9%, 0%, 71.8%)
CIE-LABlab(15.01, 22.65, -24.07)
CIE-LCHlch(15.01, 33.05, 313.25°)
OKLaboklab(27.69% 0.0507 -0.0678)
OKLCHoklch(27.69% 0.085 306.8)
XYZxyz(2.9041, 1.9105, 6.3454)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A48 #2F481A
analogous
#1C1A48 #331A48 #481A46
triadic
#331A48 #48331A #1A4833
tetradic
#331A48 #481C1A #2F481A #1A4648
square
#331A48 #481C1A #2F481A #1A4648
split-complementary
#331A48 #46481A #1A481C
monochromatic
#100816 #130A1B #331A48 #532A75 #733AA2

Accessibility & contrast

On white

15.20
#331A48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#331A48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A48
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A48#FFFFFF#000000##FFFFFF
##331A481.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092549
Deuteranopia (green-blind)
#122647
Tritanopia (blue-blind)
#30232E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331a48;
/* rgb */ color: rgb(51, 26, 72);
/* oklch */ color: oklch(27.7% 0.085 306.8);
Tailwind
colors: {
  custom: {
    50: '#6c587b',
    500: '#331a48',
    950: '#000000',
  },
}
SCSS
$custom: #331a48;
$custom-light: #6c587b;
$custom-dark: #000000;
JSON
{
  "hex": "#331a48",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 72
  },
  "hsl": {
    "h": 272.609,
    "s": 46.939,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27694,
    "c": 0.08468,
    "h": 306.8
  },
  "luminance": 0.0191
}

Semantic roles & 50–950 ramp

primary
#331A48
secondary
#5C7E40
accent
#D7518E
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #331A48

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

Preview Lab → · Contrast checker → · Palette generator →

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