#331A5B#331A5B

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

Color values

HEX#331A5B
RGBrgb(51, 26, 91)
HSLhsl(263, 56%, 23%)
HSVhsv(263, 71%, 36%)
CMYKcmyk(44%, 71.4%, 0%, 64.3%)
CIE-LABlab(16.49, 28.21, -34.60)
CIE-LCHlch(16.49, 44.64, 309.19°)
OKLaboklab(29.24% 0.0495 -0.0987)
OKLCHoklch(29.24% 0.11 296.6)
XYZxyz(3.6225, 2.1979, 10.1289)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A5B #425B1A
analogous
#1A215B #331A5B #531A5B
triadic
#331A5B #5B331A #1A5B33
tetradic
#331A5B #5B1A21 #425B1A #1A5B53
square
#331A5B #5B1A21 #425B1A #1A5B53
split-complementary
#331A5B #5B531A #215B1A
monochromatic
#0D0718 #180C2B #331A5B #4E288B #6835BA

Accessibility & contrast

On white

14.59
#331A5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331A5B
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A5B#FFFFFF#000000##FFFFFF
##331A5B1.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#00285A
Tritanopia (blue-blind)
#292938
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331a5b;
/* rgb */ color: rgb(51, 26, 91);
/* oklch */ color: oklch(29.2% 0.110 296.6);
Tailwind
colors: {
  custom: {
    50: '#6f588a',
    500: '#331a5b',
    950: '#000000',
  },
}
SCSS
$custom: #331a5b;
$custom-light: #6f588a;
$custom-dark: #000000;
JSON
{
  "hex": "#331a5b",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 91
  },
  "hsl": {
    "h": 263.077,
    "s": 55.556,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29241,
    "c": 0.11044,
    "h": 296.6
  },
  "luminance": 0.02198
}

Semantic roles & 50–950 ramp

primary
#331A5B
secondary
#729140
accent
#DF49A5
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331A5B

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

Preview Lab → · Contrast checker → · Palette generator →

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