#331965#331965

#331965 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.125 H 293.0°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#331965
RGBrgb(51, 25, 101)
HSLhsl(261, 60%, 25%)
HSVhsv(261, 75%, 40%)
CMYKcmyk(49.5%, 75.2%, 0%, 60.4%)
CIE-LABlab(17.17, 31.82, -40.13)
CIE-LCHlch(17.17, 51.21, 308.41°)
OKLaboklab(30% 0.0488 -0.115)
OKLCHoklch(30% 0.125 293)
XYZxyz(4.0612, 2.3385, 12.5468)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331965 #4B6519
analogous
#192565 #331965 #591965
triadic
#331965 #653319 #196533
tetradic
#331965 #651925 #4B6519 #196559
square
#331965 #651925 #4B6519 #196559
split-complementary
#331965 #655919 #256519
monochromatic
#0C0619 #1A0D34 #331965 #4C2596 #6531C7

Accessibility & contrast

On white

14.31
#331965 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#331965 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331965
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331965#FFFFFF#000000##FFFFFF
##3319651.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B67
Deuteranopia (green-blind)
#002964
Tritanopia (blue-blind)
#242C3D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331965;
/* rgb */ color: rgb(51, 25, 101);
/* oklch */ color: oklch(30.0% 0.125 293.0);
Tailwind
colors: {
  custom: {
    50: '#705892',
    500: '#331965',
    950: '#000000',
  },
}
SCSS
$custom: #331965;
$custom-light: #705892;
$custom-dark: #000000;
JSON
{
  "hex": "#331965",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 101
  },
  "hsl": {
    "h": 260.526,
    "s": 60.317,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30004,
    "c": 0.12491,
    "h": 293
  },
  "luminance": 0.02339
}

Semantic roles & 50–950 ramp

primary
#331965
secondary
#7B9B3F
accent
#E344AD
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331965

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

Preview Lab → · Contrast checker → · Palette generator →

#331965 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva