#331A50#331A50

#331A50 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.096 H 301.9°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#331A50
RGBrgb(51, 26, 80)
HSLhsl(268, 51%, 21%)
HSVhsv(268, 68%, 31%)
CMYKcmyk(36.3%, 67.5%, 0%, 68.6%)
CIE-LABlab(15.60, 24.94, -28.62)
CIE-LCHlch(15.60, 37.96, 311.07°)
OKLaboklab(28.31% 0.0506 -0.0811)
OKLCHoklch(28.31% 0.096 301.9)
XYZxyz(3.1823, 2.0218, 7.8105)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A50 #37501A
analogous
#1A1C50 #331A50 #4E1A50
triadic
#331A50 #50331A #1A5033
tetradic
#331A50 #501A1C #37501A #1A504E
square
#331A50 #501A1C #37501A #1A504E
split-complementary
#331A50 #504E1A #1C501A
monochromatic
#0F0817 #160B22 #331A50 #50297E #6E38AC

Accessibility & contrast

On white

14.95
#331A50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#331A50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A50
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A50#FFFFFF#000000##FFFFFF
##331A501.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002752
Deuteranopia (green-blind)
#09274F
Tritanopia (blue-blind)
#2D2532
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331a50;
/* rgb */ color: rgb(51, 26, 80);
/* oklch */ color: oklch(28.3% 0.096 301.9);
Tailwind
colors: {
  custom: {
    50: '#6d5881',
    500: '#331a50',
    950: '#000000',
  },
}
SCSS
$custom: #331a50;
$custom-light: #6d5881;
$custom-dark: #000000;
JSON
{
  "hex": "#331a50",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 80
  },
  "hsl": {
    "h": 267.778,
    "s": 50.943,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28314,
    "c": 0.09562,
    "h": 301.9
  },
  "luminance": 0.02022
}

Semantic roles & 50–950 ramp

primary
#331A50
secondary
#668640
accent
#DA4D99
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #331A50

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

Preview Lab → · Contrast checker → · Palette generator →

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