#331A66#331A66

#331A66 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.125 H 292.4°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#331A66
RGBrgb(51, 26, 102)
HSLhsl(260, 59%, 25%)
HSVhsv(260, 75%, 40%)
CMYKcmyk(50%, 74.5%, 0%, 60%)
CIE-LABlab(17.47, 31.55, -40.31)
CIE-LCHlch(17.47, 51.19, 308.05°)
OKLaboklab(30.24% 0.0475 -0.1155)
OKLCHoklch(30.24% 0.125 292.4)
XYZxyz(4.1322, 2.4018, 12.8137)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A66 #4D661A
analogous
#1A2766 #331A66 #591A66
triadic
#331A66 #66331A #1A6633
tetradic
#331A66 #661A27 #4D661A #1A6659
square
#331A66 #661A27 #4D661A #1A6659
split-complementary
#331A66 #66591A #27661A
monochromatic
#0C0618 #1B0E35 #331A66 #4B2697 #6433C8

Accessibility & contrast

On white

14.19
#331A66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#331A66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A66
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A66#FFFFFF#000000##FFFFFF
##331A661.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C68
Deuteranopia (green-blind)
#002965
Tritanopia (blue-blind)
#232D3E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331a66;
/* rgb */ color: rgb(51, 26, 102);
/* oklch */ color: oklch(30.2% 0.125 292.4);
Tailwind
colors: {
  custom: {
    50: '#705992',
    500: '#331a66',
    950: '#000000',
  },
}
SCSS
$custom: #331a66;
$custom-light: #705992;
$custom-dark: #000000;
JSON
{
  "hex": "#331a66",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 102
  },
  "hsl": {
    "h": 259.737,
    "s": 59.375,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30244,
    "c": 0.1249,
    "h": 292.4
  },
  "luminance": 0.02402
}

Semantic roles & 50–950 ramp

primary
#331A66
secondary
#7E9C40
accent
#E345AF
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331A66

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

Preview Lab → · Contrast checker → · Palette generator →

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