#331A69#331A69

#331A69 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.5% C 0.129 H 291.3°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#331A69
RGBrgb(51, 26, 105)
HSLhsl(259, 60%, 26%)
HSVhsv(259, 75%, 41%)
CMYKcmyk(51.4%, 75.2%, 0%, 58.8%)
CIE-LABlab(17.75, 32.47, -41.82)
CIE-LCHlch(17.75, 52.94, 307.83°)
OKLaboklab(30.53% 0.0469 -0.1199)
OKLCHoklch(30.53% 0.129 291.3)
XYZxyz(4.2837, 2.4624, 13.6114)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A69 #50691A
analogous
#1A2969 #331A69 #5A1A69
triadic
#331A69 #69331A #1A6933
tetradic
#331A69 #691A29 #50691A #1A695A
square
#331A69 #691A29 #50691A #1A695A
split-complementary
#331A69 #695A1A #29691A
monochromatic
#0C0619 #1B0E38 #331A69 #4B269A #6332CB

Accessibility & contrast

On white

14.07
#331A69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#331A69 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A69
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A69#FFFFFF#000000##FFFFFF
##331A691.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6B
Deuteranopia (green-blind)
#002A67
Tritanopia (blue-blind)
#212E3F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331a69;
/* rgb */ color: rgb(51, 26, 105);
/* oklch */ color: oklch(30.5% 0.129 291.3);
Tailwind
colors: {
  custom: {
    50: '#715995',
    500: '#331a69',
    950: '#000000',
  },
}
SCSS
$custom: #331a69;
$custom-light: #715995;
$custom-dark: #000000;
JSON
{
  "hex": "#331a69",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 105
  },
  "hsl": {
    "h": 258.987,
    "s": 60.305,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30528,
    "c": 0.12877,
    "h": 291.3
  },
  "luminance": 0.02463
}

Semantic roles & 50–950 ramp

primary
#331A69
secondary
#819E40
accent
#E344B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331A69

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

Preview Lab → · Contrast checker → · Palette generator →

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