#331A65#331A65

#331A65 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.1% C 0.124 H 292.7°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#331A65
RGBrgb(51, 26, 101)
HSLhsl(260, 59%, 25%)
HSVhsv(260, 74%, 40%)
CMYKcmyk(49.5%, 74.3%, 0%, 60.4%)
CIE-LABlab(17.38, 31.25, -39.80)
CIE-LCHlch(17.38, 50.60, 308.14°)
OKLaboklab(30.15% 0.0477 -0.114)
OKLCHoklch(30.15% 0.124 292.7)
XYZxyz(4.0829, 2.3820, 12.5541)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A65 #4C651A
analogous
#1A2765 #331A65 #591A65
triadic
#331A65 #65331A #1A6533
tetradic
#331A65 #651A27 #4C651A #1A6559
square
#331A65 #651A27 #4C651A #1A6559
split-complementary
#331A65 #65591A #27651A
monochromatic
#0C0618 #1A0D34 #331A65 #4C2796 #6433C6

Accessibility & contrast

On white

14.22
#331A65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331A65
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A65#FFFFFF#000000##FFFFFF
##331A651.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C67
Deuteranopia (green-blind)
#002964
Tritanopia (blue-blind)
#242D3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331a65;
/* rgb */ color: rgb(51, 26, 101);
/* oklch */ color: oklch(30.1% 0.124 292.7);
Tailwind
colors: {
  custom: {
    50: '#705992',
    500: '#331a65',
    950: '#000000',
  },
}
SCSS
$custom: #331a65;
$custom-light: #705992;
$custom-dark: #000000;
JSON
{
  "hex": "#331a65",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 101
  },
  "hsl": {
    "h": 260,
    "s": 59.055,
    "l": 24.902
  },
  "oklch": {
    "l": 0.3015,
    "c": 0.1236,
    "h": 292.7
  },
  "luminance": 0.02382
}

Semantic roles & 50–950 ramp

primary
#331A65
secondary
#7C9B40
accent
#E246AE
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331A65

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

Preview Lab → · Contrast checker → · Palette generator →

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