#331B43#331B43

#331B43 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.5% C 0.076 H 310.0°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#331B43
RGBrgb(51, 27, 67)
HSLhsl(276, 43%, 18%)
HSVhsv(276, 60%, 26%)
CMYKcmyk(23.9%, 59.7%, 0%, 73.7%)
CIE-LABlab(14.92, 20.61, -20.76)
CIE-LCHlch(14.92, 29.25, 314.80°)
OKLaboklab(27.51% 0.0488 -0.0581)
OKLCHoklch(27.51% 0.076 310)
XYZxyz(2.7701, 1.8930, 5.5286)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B43 #2B431B
analogous
#1F1B43 #331B43 #431B3F
triadic
#331B43 #43331B #1B4333
tetradic
#331B43 #431F1B #2B431B #1B3F43
square
#331B43 #431F1B #2B431B #1B3F43
split-complementary
#331B43 #3F431B #1B431F
monochromatic
#110916 #120917 #331B43 #542D6F #753E9A

Accessibility & contrast

On white

15.23
#331B43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331B43
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B43#FFFFFF#000000##FFFFFF
##331B431.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102444
Deuteranopia (green-blind)
#172642
Tritanopia (blue-blind)
#31222C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331b43;
/* rgb */ color: rgb(51, 27, 67);
/* oklch */ color: oklch(27.5% 0.076 310.0);
Tailwind
colors: {
  custom: {
    50: '#6c5877',
    500: '#331b43',
    950: '#000000',
  },
}
SCSS
$custom: #331b43;
$custom-light: #6c5877;
$custom-dark: #000000;
JSON
{
  "hex": "#331b43",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 67
  },
  "hsl": {
    "h": 276,
    "s": 42.553,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27514,
    "c": 0.07592,
    "h": 310
  },
  "luminance": 0.01893
}

Semantic roles & 50–950 ramp

primary
#331B43
secondary
#577941
accent
#D25587
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #331B43

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

Preview Lab → · Contrast checker → · Palette generator →

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