#331B53#331B53

#331B53 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.098 H 300.0°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#331B53
RGBrgb(51, 27, 83)
HSLhsl(266, 51%, 22%)
HSVhsv(266, 67%, 33%)
CMYKcmyk(38.6%, 67.5%, 0%, 67.5%)
CIE-LABlab(16.07, 25.20, -29.91)
CIE-LCHlch(16.07, 39.11, 310.12°)
OKLaboklab(28.73% 0.049 -0.0849)
OKLCHoklch(28.73% 0.098 300)
XYZxyz(3.3181, 2.1122, 8.4148)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B53 #3B531B
analogous
#1B1F53 #331B53 #4F1B53
triadic
#331B53 #53331B #1B5333
tetradic
#331B53 #531B1F #3B531B #1B534F
square
#331B53 #531B1F #3B531B #1B534F
split-complementary
#331B53 #534F1B #1F531B
monochromatic
#0E0817 #170C25 #331B53 #4F2A81 #6C39AF

Accessibility & contrast

On white

14.76
#331B53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#331B53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331B53
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B53#FFFFFF#000000##FFFFFF
##331B531.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002855
Deuteranopia (green-blind)
#062752
Tritanopia (blue-blind)
#2C2734
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331b53;
/* rgb */ color: rgb(51, 27, 83);
/* oklch */ color: oklch(28.7% 0.098 300.0);
Tailwind
colors: {
  custom: {
    50: '#6e5984',
    500: '#331b53',
    950: '#000000',
  },
}
SCSS
$custom: #331b53;
$custom-light: #6e5984;
$custom-dark: #000000;
JSON
{
  "hex": "#331b53",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 83
  },
  "hsl": {
    "h": 265.714,
    "s": 50.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28726,
    "c": 0.09807,
    "h": 300
  },
  "luminance": 0.02112
}

Semantic roles & 50–950 ramp

primary
#331B53
secondary
#6A8941
accent
#DA4D9E
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331B53

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

Preview Lab → · Contrast checker → · Palette generator →

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