#331A57#331A57

#331A57 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.105 H 298.4°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#331A57
RGBrgb(51, 26, 87)
HSLhsl(265, 54%, 22%)
HSVhsv(265, 70%, 34%)
CMYKcmyk(41.4%, 70.1%, 0%, 65.9%)
CIE-LABlab(16.16, 27.01, -32.46)
CIE-LCHlch(16.16, 42.22, 309.76°)
OKLaboklab(28.9% 0.05 -0.0924)
OKLCHoklch(28.9% 0.105 298.4)
XYZxyz(3.4545, 2.1307, 9.2442)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A57 #3E571A
analogous
#1A2057 #331A57 #521A57
triadic
#331A57 #57331A #1A5733
tetradic
#331A57 #571A20 #3E571A #1A5752
square
#331A57 #571A20 #3E571A #1A5752
split-complementary
#331A57 #57521A #20571A
monochromatic
#0E0718 #170C28 #331A57 #4F2886 #6A36B5

Accessibility & contrast

On white

14.72
#331A57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#331A57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A57
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A57#FFFFFF#000000##FFFFFF
##331A571.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002859
Deuteranopia (green-blind)
#002756
Tritanopia (blue-blind)
#2B2836
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331a57;
/* rgb */ color: rgb(51, 26, 87);
/* oklch */ color: oklch(28.9% 0.105 298.4);
Tailwind
colors: {
  custom: {
    50: '#6e5887',
    500: '#331a57',
    950: '#000000',
  },
}
SCSS
$custom: #331a57;
$custom-light: #6e5887;
$custom-dark: #000000;
JSON
{
  "hex": "#331a57",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 87
  },
  "hsl": {
    "h": 264.59,
    "s": 53.982,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28895,
    "c": 0.1051,
    "h": 298.4
  },
  "luminance": 0.02131
}

Semantic roles & 50–950 ramp

primary
#331A57
secondary
#6D8D40
accent
#DD4AA1
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331A57

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

Preview Lab → · Contrast checker → · Palette generator →

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