#331C88#331C88

#331C88 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.165 H 282.9°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#331C88
RGBrgb(51, 28, 136)
HSLhsl(253, 66%, 32%)
HSVhsv(253, 79%, 53%)
CMYKcmyk(62.5%, 79.4%, 0%, 46.7%)
CIE-LABlab(21.25, 40.96, -55.91)
CIE-LCHlch(21.25, 69.31, 306.23°)
OKLaboklab(33.94% 0.0369 -0.1612)
OKLCHoklch(33.94% 0.165 282.9)
XYZxyz(6.2230, 3.3115, 23.5990)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C88 #71881C
analogous
#1C3B88 #331C88 #691C88
triadic
#331C88 #88331C #1C8833
tetradic
#331C88 #881C3B #71881C #1C8869
square
#331C88 #881C3B #71881C #1C8869
split-complementary
#331C88 #88691C #3B881C
monochromatic
#0D0722 #201255 #331C88 #4626BB #6546D9

Accessibility & contrast

On white

12.63
#331C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#331C88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C88
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C88#FFFFFF#000000##FFFFFF
##331C881.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #331c88;
/* rgb */ color: rgb(51, 28, 136);
/* oklch */ color: oklch(33.9% 0.165 282.9);
Tailwind
colors: {
  custom: {
    50: '#765cac',
    500: '#331c88',
    950: '#000000',
  },
}
SCSS
$custom: #331c88;
$custom-light: #765cac;
$custom-dark: #000000;
JSON
{
  "hex": "#331c88",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 136
  },
  "hsl": {
    "h": 252.778,
    "s": 65.854,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33943,
    "c": 0.16539,
    "h": 282.9
  },
  "luminance": 0.03312
}

Semantic roles & 50–950 ramp

primary
#331C88
secondary
#A2BA45
accent
#E93FC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #331C88

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

Preview Lab → · Contrast checker → · Palette generator →

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