#331865#331865

#331865 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.126 H 293.2°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#331865
RGBrgb(51, 24, 101)
HSLhsl(261, 62%, 25%)
HSVhsv(261, 76%, 40%)
CMYKcmyk(49.5%, 76.2%, 0%, 60.4%)
CIE-LABlab(16.97, 32.38, -40.46)
CIE-LCHlch(16.97, 51.82, 308.67°)
OKLaboklab(29.86% 0.0498 -0.1159)
OKLCHoklch(29.86% 0.126 293.2)
XYZxyz(4.0402, 2.2965, 12.5398)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331865 #4A6518
analogous
#182465 #331865 #5A1865
triadic
#331865 #653318 #186533
tetradic
#331865 #651824 #4A6518 #18655A
square
#331865 #651824 #4A6518 #18655A
split-complementary
#331865 #655A18 #246518
monochromatic
#0C0619 #1A0C34 #331865 #4C2496 #6530C8

Accessibility & contrast

On white

14.39
#331865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#331865 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331865
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331865#FFFFFF#000000##FFFFFF
##3318651.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331865;
/* rgb */ color: rgb(51, 24, 101);
/* oklch */ color: oklch(29.9% 0.126 293.2);
Tailwind
colors: {
  custom: {
    50: '#705792',
    500: '#331865',
    950: '#000000',
  },
}
SCSS
$custom: #331865;
$custom-light: #705792;
$custom-dark: #000000;
JSON
{
  "hex": "#331865",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 101
  },
  "hsl": {
    "h": 261.039,
    "s": 61.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29862,
    "c": 0.12619,
    "h": 293.2
  },
  "luminance": 0.02297
}

Semantic roles & 50–950 ramp

primary
#331865
secondary
#7A9B3E
accent
#E543AC
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331865

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

Preview Lab → · Contrast checker → · Palette generator →

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