#331B44#331B44

#331B44 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.077 H 309.3°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#331B44
RGBrgb(51, 27, 68)
HSLhsl(275, 43%, 19%)
HSVhsv(275, 60%, 27%)
CMYKcmyk(25%, 60.3%, 0%, 73.3%)
CIE-LABlab(14.98, 20.89, -21.35)
CIE-LCHlch(14.98, 29.87, 314.38°)
OKLaboklab(27.58% 0.0489 -0.0599)
OKLCHoklch(27.58% 0.077 309.3)
XYZxyz(2.8004, 1.9051, 5.6879)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B44 #2C441B
analogous
#1E1B44 #331B44 #441B40
triadic
#331B44 #44331B #1B4433
tetradic
#331B44 #441E1B #2C441B #1B4044
square
#331B44 #441E1B #2C441B #1B4044
split-complementary
#331B44 #40441B #1B441E
monochromatic
#100916 #120A18 #331B44 #542C70 #753E9C

Accessibility & contrast

On white

15.21
#331B44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331B44
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B44#FFFFFF#000000##FFFFFF
##331B441.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2545
Deuteranopia (green-blind)
#172643
Tritanopia (blue-blind)
#31222C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331b44;
/* rgb */ color: rgb(51, 27, 68);
/* oklch */ color: oklch(27.6% 0.077 309.3);
Tailwind
colors: {
  custom: {
    50: '#6c5878',
    500: '#331b44',
    950: '#000000',
  },
}
SCSS
$custom: #331b44;
$custom-light: #6c5878;
$custom-dark: #000000;
JSON
{
  "hex": "#331b44",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 68
  },
  "hsl": {
    "h": 275.122,
    "s": 43.158,
    "l": 18.627
  },
  "oklch": {
    "l": 0.27584,
    "c": 0.0773,
    "h": 309.3
  },
  "luminance": 0.01905
}

Semantic roles & 50–950 ramp

primary
#331B44
secondary
#597A41
accent
#D35589
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #331B44

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

Preview Lab → · Contrast checker → · Palette generator →

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