#331B59#331B59

#331B59 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.106 H 297.1°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#331B59
RGBrgb(51, 27, 89)
HSLhsl(263, 53%, 23%)
HSVhsv(263, 70%, 35%)
CMYKcmyk(42.7%, 69.7%, 0%, 65.1%)
CIE-LABlab(16.55, 27.00, -33.17)
CIE-LCHlch(16.55, 42.77, 309.14°)
OKLaboklab(29.23% 0.0485 -0.0945)
OKLCHoklch(29.23% 0.106 297.1)
XYZxyz(3.5599, 2.2089, 9.6881)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B59 #41591B
analogous
#1B2259 #331B59 #521B59
triadic
#331B59 #59331B #1B5933
tetradic
#331B59 #591B22 #41591B #1B5952
square
#331B59 #591B22 #41591B #1B5952
split-complementary
#331B59 #59521B #22591B
monochromatic
#0D0717 #180D2A #331B59 #4E2988 #6937B7

Accessibility & contrast

On white

14.57
#331B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#331B59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331B59
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B59#FFFFFF#000000##FFFFFF
##331B591.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295B
Deuteranopia (green-blind)
#002858
Tritanopia (blue-blind)
#2A2937
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331b59;
/* rgb */ color: rgb(51, 27, 89);
/* oklch */ color: oklch(29.2% 0.106 297.1);
Tailwind
colors: {
  custom: {
    50: '#6e5988',
    500: '#331b59',
    950: '#000000',
  },
}
SCSS
$custom: #331b59;
$custom-light: #6e5988;
$custom-dark: #000000;
JSON
{
  "hex": "#331b59",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 89
  },
  "hsl": {
    "h": 263.226,
    "s": 53.448,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29228,
    "c": 0.10625,
    "h": 297.1
  },
  "luminance": 0.02209
}

Semantic roles & 50–950 ramp

primary
#331B59
secondary
#718F41
accent
#DD4BA4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331B59

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

Preview Lab → · Contrast checker → · Palette generator →

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